HEX to OKLCH: #090B0C
Also known as: Tailwind mist-950
Result
#090B0C → oklch(0.148 0.004 228.8)
Values are shown at full precision, so converting back gives exactly #090b0c. 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. sRGB → linear
R: 9/255 = 0.03529 → 0.002732 (÷ 12.92) G: 11/255 = 0.04314 → 0.003347 (((x + 0.055) / 1.055)^2.4) B: 12/255 = 0.04706 → 0.003677 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.003110 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.003252 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.003500
3. cube root
l′ = ∛0.003110 = 0.145968 m′ = ∛0.003252 = 0.148151 s′ = ∛0.003500 = 0.151831
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.14768 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00266 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00303
5. Oklab → OKLCH
C = √(a² + b²) = 0.00403 H = atan2(b, a) = 228.760° L = 0.14768
6. OKLCH
oklch(0.14768 0.00403 228.760) rounded: oklch(0.148 0.004 228.8)
All formats
- HEX
- #090b0c
- RGB
- rgb(9 11 12)
- RGB (legacy)
- rgb(9, 11, 12)
- HSL
- hsl(200.00 14.29% 4.12%) → hsl(200 14% 4%)
- HWB
- hwb(200 4% 95%)
- OKLCH
- oklch(0.148 0.004 228.8) · oklch(14.8% 0.004 228.8)
- OKLab
- oklab(0.148 -0.003 -0.003)
- Lab (D50)
- lab(2.92 -0.44 -0.61)
- LCH (D50)
- lch(2.92 0.75 234.40)
- Display P3
- color(display-p3 0.0367 0.0429 0.0466)
- Linear sRGB
- color(srgb-linear 0.0027 0.0033 0.0037)
Gamut: sRGB and Display P3
#090B0C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.029 and Display P3 reaches 0.038; this color uses 14% of the sRGB chroma available.
CSS snippets
.element {
color: #090b0c;
color: rgb(9 11 12);
color: hsl(200 14% 4%);
color: oklch(0.148 0.004 228.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.148 0.004 228.8);
}
/* arbitrary values */
class="text-[#090b0c] bg-[oklch(0.148_0.004_228.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0367 0.0429 0.0466); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #090b0c calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- neutral-950#0A0A0A
- zinc-950#09090B
- stone-950#0C0A09
- mauve-950#0C090C
- olive-950#0C0C09
- gray-950#030712
- v3 slate-950#020617
- slate-950#020618
Lighter and darker, same hue and chroma
- #161819 · oklch(0.208 0.004 228.8) · ΔL +0.06
- #020203 · oklch(0.088 0.004 228.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?