Is OKLCH safe to use in production CSS
Yes. OKLCH has been Baseline widely available on MDN since May 2023. Here is what still needs a fallback, and the CSS to write it.
Yes, for almost every site. MDN marks oklch() as Baseline "Widely available" and says it has worked across browsers since May 2023 (MDN, as of October 2026).
The edge cases are older browsers, colors a screen cannot show, and the newer syntax built on top of oklch(). This post covers each one.
Which browsers support oklch()?
Every current major browser does. These are the first versions with support, from caniuse as of October 2026:
| Browser | First version with oklch() |
|---|---|
| Chrome | 111 |
| Edge | 111 |
| Firefox | 113 |
| Safari | 15.4 |
| iOS Safari | 15.4 |
| Samsung Internet | 22 |
caniuse puts global usage covered at 95.12% on the day I checked.
How do I read an oklch() value?
The three numbers are lightness, chroma and hue: oklch(L C H / A). MDN gives the ranges (MDN oklch(), as of October 2026).
- Lightness is 0 to 1, or 0% to 100%. 0 is black and 1 is white.
- Chroma starts at 0 and has no fixed top. In practice it stays under 0.5. In this function, 100% means 0.4.
- Hue is an angle. It is not the same angle as in
hsl(), so do not copy hue numbers across. - Alpha is optional and runs from 0 to 1.
So oklch(63.7% 0.237 25.331) is a mid-light, strongly saturated red. Lightness 63.7%, chroma 0.237, hue 25.331.
Do I still need a hex fallback?
Only if your support list reaches back before those versions. If you ship Tailwind v4, it already does not. Tailwind's docs say v4.0 targets Safari 16.4, Chrome 111 and Firefox 128 (Tailwind compatibility page, as of October 2026). None of those is older than the table above.
If you do need older browsers, put the new value in a feature query. MDN documents @supports with a property and value in parentheses, and it shows a plain value before the block as the fallback (MDN @supports, as of October 2026).
:root {
--brand: #fb2c36;
}
@supports (color: oklch(0 0 0)) {
:root {
--brand: oklch(63.7% 0.237 25.331);
}
}
The OKLCH value is Tailwind's red-500. I converted it to sRGB with node to get the hex. Convert your own colors the same way, or let a tool do it. Do not round by eye.
What happens when an OKLCH color is outside the screen's range?
The browser maps it to a similar color the screen can show. The CSS Color Level 4 draft says a color like this can be used, but has to be gamut mapped for display, which gives a similar-looking color with lower chroma (W3C CSS Color 4, draft of 29 October 2026).
Hex cannot hold a color outside sRGB. OKLCH can. Here are three steps from Tailwind's red scale, converted with node:
| Step | Value | Inside sRGB? | Hex fallback I computed |
|---|---|---|---|
| red-300 | oklch(80.8% 0.114 19.571) |
No | #ffa2a2 |
| red-500 | oklch(63.7% 0.237 25.331) |
Yes | #fb2c36 |
| red-600 | oklch(57.7% 0.245 27.325) |
No | #e7000b |
The values come from Tailwind's color docs. "Inside sRGB" means the converted red, green and blue all land between 0 and 1.
For the two "No" rows my hex is a simple clip. A browser's own gamut mapping may pick a slightly different color. As a fallback for old browsers, the difference does not matter.
Is relative color syntax as safe as oklch()?
No. oklch(from var(--brand) l c h / 0.5) is a separate feature from oklch(). MDN's own page on relative colors guards its examples with an @supports check. It also explains that Safari's first implementation followed an older draft (MDN relative colors, as of October 2026).
Test it in every browser you support. Keep a plain color value before it.
What about design token files and email?
A token file can carry both values. The W3C Design Tokens format (version 2025.10) lets a color use the oklch color space and adds an optional hex property as a 6-digit fallback (DTCG Color module).
{
"red-500": {
"$type": "color",
"$value": {
"colorSpace": "oklch",
"components": [0.637, 0.237, 25.331],
"alpha": 1,
"hex": "#fb2c36"
}
}
}
I did not check email client support for oklch(). In HTML email, use hex unless you have tested the clients you send to.
Where does UIX fit?
UIX Design System builds 11-step OKLCH scales for brand, neutral and feedback colors, and the color engine is free (colors). The free web generator turns one hex into OKLCH scales and tokens you can read as CSS (/generate).
UIX does not decide your browser support list. That is your analytics and your clients.
FAQ
Does Safari support oklch()?
Yes. caniuse lists Safari 15.4 and iOS Safari 15.4 as the first versions with support, as of October 2026.
Is oklch() part of a web standard?
It is defined in CSS Color Module Level 4. The W3C lists that document as a Candidate Recommendation Draft dated 29 October 2026.
Do I need to convert existing hex colors to OKLCH?
No. Hex keeps working. Move to OKLCH when you want to adjust lightness or chroma predictably, or when you want colors outside sRGB.
Does Tailwind v4 need a fallback for oklch()?
Not for the browsers Tailwind v4.0 targets. Its docs list Safari 16.4, Chrome 111 and Firefox 128 as the floor, and all three support oklch().
Try it on your own brand color. UIX is free to start in any Figma file, and Pro adds more when you need it.


