OKLCH to HEX: #104E64
Also known as: Tailwind cyan-900
Result
oklch(0.39716 0.06981 227.191) → #104E64
Values are shown at full precision, so converting back gives exactly #104e64. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. input
oklch(0.39716 0.06981 227.191)
2. OKLCH → Oklab
a = C·cos H = -0.04744 b = C·sin H = -0.05121
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.367306 m′ = L − 0.1056·a − 0.0639·b = 0.405438 s′ = L − 0.0895·a − 1.2915·b = 0.467548
4. cube
l = 0.367306³ = 0.049554 m = 0.405438³ = 0.066646 s = 0.467548³ = 0.102206
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.005182 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.076188 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.127441
6. linear → sRGB, × 255
R = 0.06275 × 255 = 16.00 → 16 G = 0.30589 × 255 = 78.00 → 78 B = 0.39216 × 255 = 100.00 → 100
7. RGB → HEX
#104E64
All formats
- HEX
- #104e64
- RGB
- rgb(16 78 100)
- RGB (legacy)
- rgb(16, 78, 100)
- HSL
- hsl(195.71 72.41% 22.75%) → hsl(196 72% 23%)
- HWB
- hwb(196 6% 61%)
- OKLCH
- oklch(0.397 0.070 227.2) · oklch(39.7% 0.070 227.2)
- OKLab
- oklab(0.397 -0.047 -0.051)
- Lab (D50)
- lab(30.28 -13.23 -18.68)
- LCH (D50)
- lch(30.28 22.89 234.69)
- Display P3
- color(display-p3 0.1418 0.3012 0.3836)
- Linear sRGB
- color(srgb-linear 0.0052 0.0762 0.1274)
Gamut: sRGB and Display P3
#104E64 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.077 and Display P3 reaches 0.101; this color uses 91% of the sRGB chroma available.
CSS snippets
.element {
color: #104e64;
color: rgb(16 78 100);
color: hsl(196 72% 23%);
color: oklch(0.397 0.070 227.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.397 0.070 227.2);
}
/* arbitrary values */
class="text-[#104e64] bg-[oklch(0.397_0.070_227.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1418 0.3012 0.3836); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #104e64 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 cyan-900#164E63
- v3 sky-900#0C4A6E
- sky-900#024A70
- darkslategray#2F4F4F
- v3 teal-900#134E4A
- slate-700#314158
- teal-900#0B4F4A
- v3 slate-700#334155
Lighter and darker, same hue and chroma
- #255F75 · oklch(0.457 0.070 227.2) · ΔL +0.06
- #003E53 · oklch(0.337 0.070 227.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?