OKLCH to HEX: #0C0C09
Also known as: Tailwind olive-950
Result
oklch(0.15309 0.00627 107.118) → #0C0C09
Values are shown at full precision, so converting back gives exactly #0c0c09. 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.15309 0.00627 107.118)
2. OKLCH → Oklab
a = C·cos H = -0.00185 b = C·sin H = 0.00599
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.153652 m′ = L − 0.1056·a − 0.0639·b = 0.152902 s′ = L − 0.0895·a − 1.2915·b = 0.145516
4. cube
l = 0.153652³ = 0.003628 m = 0.152902³ = 0.003575 s = 0.145516³ = 0.003081
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.003676 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.003676 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.002732
6. linear → sRGB, × 255
R = 0.04705 × 255 = 12.00 → 12 G = 0.04705 × 255 = 12.00 → 12 B = 0.03530 × 255 = 9.00 → 9
7. RGB → HEX
#0C0C09
All formats
- HEX
- #0c0c09
- RGB
- rgb(12 12 9)
- RGB (legacy)
- rgb(12, 12, 9)
- HSL
- hsl(60.00 14.29% 4.12%) → hsl(60 14% 4%)
- HWB
- hwb(60 4% 95%)
- OKLCH
- oklch(0.153 0.006 107.1) · oklch(15.3% 0.006 107.1)
- OKLab
- oklab(0.153 -0.002 0.006)
- Lab (D50)
- lab(3.27 -0.32 1.18)
- LCH (D50)
- lch(3.27 1.23 105.25)
- Display P3
- color(display-p3 0.0471 0.0471 0.0364)
- Linear sRGB
- color(srgb-linear 0.0037 0.0037 0.0027)
Gamut: sRGB and Display P3
#0C0C09 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.033 and Display P3 reaches 0.038; this color uses 19% of the sRGB chroma available.
CSS snippets
.element {
color: #0c0c09;
color: rgb(12 12 9);
color: hsl(60 14% 4%);
color: oklch(0.153 0.006 107.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.153 0.006 107.1);
}
/* arbitrary values */
class="text-[#0c0c09] bg-[oklch(0.153_0.006_107.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0471 0.0471 0.0364); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #0c0c09 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- stone-950#0C0A09
- neutral-950#0A0A0A
- mist-950#090B0C
- mauve-950#0C090C
- zinc-950#09090B
- gray-950#030712
- neutral-900#171717
- v3 slate-950#020617
Lighter and darker, same hue and chroma
- #191916 · oklch(0.213 0.006 107.1) · ΔL +0.06
- #030302 · oklch(0.093 0.006 107.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?