OKLCH to HEX: #002C22
Also known as: Tailwind emerald-950
Result
oklch(0.26133 0.05013 173.096) → #002C22
Values are shown at full precision, so converting back gives exactly #002c22. 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.26133 0.05013 173.096)
2. OKLCH → Oklab
a = C·cos H = -0.04977 b = C·sin H = 0.00603
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.242906 m′ = L − 0.1056·a − 0.0639·b = 0.266199 s′ = L − 0.0895·a − 1.2915·b = 0.258001
4. cube
l = 0.242906³ = 0.014332 m = 0.266199³ = 0.018863 s = 0.258001³ = 0.017174
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.000001 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.025187 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.015997
6. linear → sRGB, × 255
R = 0.00002 × 255 = 0.00 → 0 G = 0.17255 × 255 = 44.00 → 44 B = 0.13334 × 255 = 34.00 → 34
7. RGB → HEX
#002C22
All formats
- HEX
- #002c22
- RGB
- rgb(0 44 34)
- RGB (legacy)
- rgb(0, 44, 34)
- HSL
- hsl(166.36 100.00% 8.63%) → hsl(166 100% 9%)
- HWB
- hwb(166 0% 83%)
- OKLCH
- oklch(0.261 0.050 173.1) · oklch(26.1% 0.050 173.1)
- OKLab
- oklab(0.261 -0.050 0.006)
- Lab (D50)
- lab(14.97 -17.65 2.16)
- LCH (D50)
- lch(14.97 17.78 173.02)
- Display P3
- color(display-p3 0.0557 0.1694 0.1352)
- Linear sRGB
- color(srgb-linear 0.0000 0.0252 0.0160)
Gamut: sRGB and Display P3
#002C22 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.050 and Display P3 reaches 0.068; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #002c22;
color: rgb(0 44 34);
color: hsl(166 100% 9%);
color: oklch(0.261 0.050 173.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.261 0.050 173.1);
}
/* arbitrary values */
class="text-[#002c22] bg-[oklch(0.261_0.050_173.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0557 0.1694 0.1352); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #002c22 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 emerald-950#022C22
- teal-950#022F2E
- v3 teal-950#042F2E
- v3 green-950#052E16
- green-950#032E15
- mist-800#22292B
- v3 lime-950#1A2E05
- lime-950#192E03
Lighter and darker, same hue and chroma
- #123B31 · oklch(0.321 0.050 173.1) · ΔL +0.06
- #001D14 · oklch(0.201 0.050 173.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?