Pick colors in perceptually even OKLCH, check sRGB and P3 gamut, and build a 50–950 palette, Tailwind @theme and color harmonies.
The screen eyedropper only works in Chrome and Edge (not Safari or Firefox)
oklch(68% 0.16 255)
GamutsRGBDisplay P3
The line on the chroma bar marks the most chroma sRGB can show at this lightness and hue.
Palette 50–950
Each step keeps the same share of the maximum sRGB chroma, so light and dark ends stay clean. Click to use a color.
Color harmony
Complementary
Analogous
Triadic
Split complementary
OKLCH rotates only the hue at the same lightness, so harmony colors look equally bright.
Related searches
OKLCH Color Picker
OKLCH Color Picker free
OKLCH Color Picker online
What is OKLCH Color Picker?
An OKLCH color picker that chooses colors by lightness, chroma and hue. Good for building color combinations with consistent lightness.
How to use
1
Adjust lightness, chroma and hue.
2
Check the preview.
3
Copy the CSS value.
Tips
Changing only the hue while keeping the same lightness gives a balanced palette.
Learn more
1What is good about OKLCH?
OKLCH writes a color with three values: lightness (L), chroma (C) and hue (H). The key advantage is that the values match the brightness the human eye perceives relatively well. In HSL, yellow looks very bright and blue looks dark even at the same lightness value, whereas in OKLCH colors with the same L look similarly bright.
In CSS it is written like oklch(0.7 0.15 30). The default color palette of Tailwind CSS v4 is also defined in OKLCH.
2Making a 50–950 palette
If you keep the same hue and change only the lightness step by step, you get a palette that goes together from the light steps of one color to the dark steps. This tool creates the 50, 100, ... 950 steps from the color you pick and lets you copy them as Tailwind @theme code.
It also creates the complementary color (hue 180 degrees opposite) and analogous colors (hues close by), which you can use as a reference when choosing an accent color.
3Check the color gamut (sRGB, P3)
With OKLCH you can also write very vivid colors that ordinary monitors (sRGB) cannot display. Such colors appear in their true form only on screens that support a wide gamut (Display P3), and on other screens they are adjusted to the nearest color. This tool tells you whether the color falls within the gamut, so check before using it.
Very old browsers may not support OKLCH, so if needed, write a HEX value alongside it as a fallback.
4What do the L, C, and H values in OKLCH mean?
L represents lightness, C represents chroma (color intensity), and H represents hue.
Because you can adjust the three values independently, it’s easy to make intuitive changes such as “keep the color the same, but make it a little darker.” The sliders in this tool use the ranges below.
L
Meaning
Lightness
Slider range
0 ~ 1
What it looks like
0 is close to black; 1 is close to white
C
Meaning
Chroma
Slider range
0 ~ 0.4
What it looks like
0 is gray; higher values are more vivid
H
Meaning
Hue
Slider range
0 ~ 360
What it looks like
The angle around the color wheel
Alpha
Meaning
Opacity
Slider range
0 ~ 1
What it looks like
1 means fully opaque
Value
Meaning
Slider range
What it looks like
L
Lightness
0 ~ 1
0 is close to black; 1 is close to white
C
Chroma
0 ~ 0.4
0 is gray; higher values are more vivid
H
Hue
0 ~ 360
The angle around the color wheel
Alpha
Opacity
0 ~ 1
1 means fully opaque
In CSS, L can also be written as a percentage. oklch(70% 0.15 250) and oklch(0.7 0.15 250) represent the same color.
5What colors do the hue (H) values roughly represent?
H is an angle that makes a full turn from 0 to 360. The main colors are found around the values below.
The exact appearance varies slightly with lightness and chroma. Start near the hue you want, then fine-tune it while watching the preview.
Red
Approx. H
About 30
Note
Increase the value to move toward orange
Yellow
Approx. H
About 110
Note
Bright yellows have a high L value
Green
Approx. H
About 140
Note
Teal shades are around 160–180
Teal
Approx. H
About 195
Note
In the cyan/light-blue range
Blue
Approx. H
About 260
Note
Purple shades are around 280–300
Pink / Magenta
Approx. H
About 330
Note
Around 360, the hue wraps back to red
Color
Approx. H
Note
Red
About 30
Increase the value to move toward orange
Yellow
About 110
Bright yellows have a high L value
Green
About 140
Teal shades are around 160–180
Teal
About 195
In the cyan/light-blue range
Blue
About 260
Purple shades are around 280–300
Pink / Magenta
About 330
Around 360, the hue wraps back to red
6What’s the difference between HSL and OKLCH?
In HSL, the same numeric lightness can look different across colors. OKLCH makes the numeric value correspond more closely to perceived lightness.
For example, set blue and yellow to the same 50% lightness in HSL and blue will still look much darker. You have to readjust lightness by eye whenever you change colors. In OKLCH, keeping L the same is designed to make different hues look similarly bright.
However, very vivid colors created with OKLCH may fall outside the range that a typical monitor can display. Check the gamut information below if that happens.
HSL: Palettes with the same numeric lightness can look uneven, so you need to balance them by eye.
OKLCH: Keeping L the same makes colors look similarly bright, making palettes easier to build.
Both work directly in CSS, and you can paste an existing HSL color into the input to convert it.
7How do I convert an existing HEX color to OKLCH?
Paste the color into the color-code field. The sliders update automatically, and you’ll get an OKLCH value you can copy.
Input formats: #hex, rgb(), hsl(), oklch(), and color(display-p3 ...) are supported.
You can pick a color directly from the screen with the eyedropper button (if your browser supports it).
Check the converted L, C, and H values, then fine-tune them with the sliders if needed.
Copy the value you need (OKLCH, HEX, or RGB) and paste it into your CSS.
Converting back and forth between HEX and OKLCH may cause tiny differences due to decimal rounding.
8How do I create hover and pressed colors for buttons?
Keep H and C the same as the base color and adjust L slightly to create natural interaction states.
Because L in OKLCH tracks perceived lightness fairly closely, you can use the same rule across different colors instead of tuning each one separately. Treat the values below as a starting point and make the final call based on how they look on screen.
Default
Change in L
Base value
Change in C
Base value
Hover
Change in L
Darker by 0.03–0.05
Change in C
No change
Pressed (active)
Change in L
Darker by 0.06–0.08
Change in C
A slight reduction is fine
Disabled
Change in L
No change
Change in C
Reduce significantly, by around 0.03
State
Change in L
Change in C
Default
Base value
Base value
Hover
Darker by 0.03–0.05
No change
Pressed (active)
Darker by 0.06–0.08
A slight reduction is fine
Disabled
No change
Reduce significantly, by around 0.03
9How should I choose colors for dark mode?
In dark mode, keeping the same hue (H) while increasing L and slightly lowering C usually makes colors easier to read.
Strong colors can look muddy against a dark background, while overly vivid colors can strain the eyes. If an accent color has an L of around 0.55 in light mode, try raising it to around 0.7 in dark mode.
Keep the same H for light and dark themes to preserve your brand identity.
Try a dark background with L around 0.15–0.25 instead of pure black.
Check text colors with a contrast checker and make sure the ratio is at least 4.5:1.
10How do I use colors with transparency?
Add an alpha value after a slash. For example, oklch(0.7 0.15 250 / 0.5) is a color with 50% opacity.
Moving the opacity slider updates OKLCH, HEX (8-digit), and RGB values to include alpha. This is useful for shadows, overlays, and translucent card backgrounds.
A transparent color’s actual contrast depends on the background behind it. When using it for text, check the contrast of the composited color.
11What if a browser doesn’t support oklch()?
For older browsers, the simplest approach is to declare HEX first, then add an oklch value underneath it.
The “Copy CSS with fallback” button in this tool puts HEX and OKLCH values on consecutive lines after color:. Browsers ignore values they don’t understand and use the last supported value, so older environments fall back to HEX.
Browser support varies by project requirements. Check current support information in the documentation for your target browsers.
12Why doesn’t the color get more vivid when I increase chroma (C)?
You’ve reached the limit that the display can reproduce at that lightness and hue.
OKLCH can describe colors that a monitor cannot display. The marker on the chroma slider shows the maximum sRGB chroma available at that lightness and hue. Beyond it, the sRGB badge may turn off while only the P3 badge remains on. A display or browser maps out-of-range values to a nearby color.
If the sRGB badge is on, the color should look nearly the same on almost any display.
If only P3 is on, the vivid color is visible only on displays that support a wider gamut.
If both are off, the color is adjusted to look similar on a standard display.
13How can I find colors that work well together?
Changing only the H value of the base color keeps L and C consistent, creating a balanced combination.
This tool shows combinations such as complementary, analogous, and split-complementary colors at once. Select a swatch to use it as the base color, then refine it. A safe starting point is an understated analogous palette, with complementary colors used sparingly for emphasis.
Analogous: Nearby H values. Calm and harmonious.
Complementary: 180° difference in H. Strong contrast, useful for accents.
Split-complementary: The hues on either side of the complement. Softer contrast than a direct complement.
Use a larger L difference between text and background, and keep C low.
14Can I judge text contrast just by looking at the L value?
It can give you a rough idea, but you need a contrast checker to confirm whether it passes.
On a white background (L=1), text with L at or below 0.55 is generally fairly readable, while values above 0.7 can look washed out. However, the contrast ratio can vary at the same L depending on hue, so treat this only as a rough guide.
For accessibility checks such as the 4.5:1 standard, enter the text and background colors in a contrast checker.
15Can I create gray colors with OKLCH?
Set C to 0 for a perfectly neutral gray. Raise it slightly to around 0.01–0.03 to create a gray with a subtle hint of your brand color.
Pure gray can sometimes feel disconnected from accent colors. Use the same H as your accent color and keep C very low to make backgrounds, borders, and secondary text feel like part of one palette.
Page background
L
0.97~0.99
C
Around 0.005
H
Match the accent color
Border
L
0.88~0.92
C
Around 0.01
H
Match the accent color
Secondary text
L
Around 0.55
C
Around 0.02
H
Match the accent color
Body text
L
0.2~0.3
C
Around 0.02
H
Match the accent color
Use
L
C
H
Page background
0.97~0.99
Around 0.005
Match the accent color
Border
0.88~0.92
Around 0.01
Match the accent color
Secondary text
Around 0.55
Around 0.02
Match the accent color
Body text
0.2~0.3
Around 0.02
Match the accent color
16How can I keep gradients from looking muddy?
Set the gradient interpolation color space to oklch in CSS to reduce muddy-looking intermediate colors.
Write it like linear-gradient(in oklch, start-color, end-color). With the default interpolation, a gradient from blue to yellow may pass through a grayish middle. Interpolating in oklch makes the hue transition more even. Older browsers may ignore this syntax, so declare a standard gradient first as a fallback.
When you blend two colors with very different hues, unexpected colors may appear in between. Check the preview.
17How do I use these colors in Tailwind or design tokens?
Create palette steps (50–950), then copy the @theme block for Tailwind settings into your CSS.
Use consistent color names and step numbers for your tokens. For example, make brand-500 the base color, use lower numbers for lighter shades and higher numbers for darker shades. This keeps things clear when collaborating.
Choose the base color (around 500) first, then create the other steps using the same H.
As the step number increases, lower L and reduce C toward both ends of the scale.
Use variables with the same names for light and dark modes, and change their values between themes.
18Frequently asked questions
Common questions about working with OKLCH.
What’s the difference between OKLCH and OKLAB? They represent the same color space: OKLAB uses Cartesian coordinates (L, a, b), while OKLCH uses polar coordinates (L, C, H). OKLCH is easier for people to adjust colors.
Can I write L as a percentage? Yes. 0.7 and 70% are equivalent.
Are H values of 360 and 0 different? No. They represent the same hue after a full turn.
Does this tool send the colors I enter to a server? No. All color calculations happen in your browser.
Changing H has no visible effect on very dark colors. That’s normal: hue differences are barely visible when L is close to 0.
19How many decimal places should I use for OKLCH values?
Two or three decimal places are enough for L and C. For H, an integer or one decimal place is usually sufficient.
Including differences too small to see only makes your code longer. This tool also formats copied values to an easy-to-read precision. If you use the same color in several places, define the copied value once as a variable and reuse it to avoid inconsistencies.
L: Three decimal places, such as 0.623
C: Three decimal places, such as 0.188
H: An integer or one decimal place, such as 260
Define each shared color once as a CSS variable and reuse it.