OKLCH to HEX: #292524
Also known as: Tailwind stone-800, Tailwind v3 stone-800
Result
oklch(0.26848 0.00629 34.297) → #292524
Values are shown at full precision, so converting back gives exactly #292524. 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.26848 0.00629 34.297)
2. OKLCH → Oklab
a = C·cos H = 0.00520 b = C·sin H = 0.00354
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.271304 m′ = L − 0.1056·a − 0.0639·b = 0.267705 s′ = L − 0.0895·a − 1.2915·b = 0.263438
4. cube
l = 0.271304³ = 0.019970 m = 0.267705³ = 0.019185 s = 0.263438³ = 0.018282
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.022174 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.018499 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.017640
6. linear → sRGB, × 255
R = 0.16079 × 255 = 41.00 → 41 G = 0.14509 × 255 = 37.00 → 37 B = 0.14117 × 255 = 36.00 → 36
7. RGB → HEX
#292524
All formats
- HEX
- #292524
- RGB
- rgb(41 37 36)
- RGB (legacy)
- rgb(41, 37, 36)
- HSL
- hsl(12.00 6.49% 15.10%) → hsl(12 6% 15%)
- HWB
- hwb(12 14% 84%)
- OKLCH
- oklch(0.268 0.006 34.3) · oklch(26.8% 0.006 34.3)
- OKLab
- oklab(0.268 0.005 0.004)
- Lab (D50)
- lab(15.10 1.76 1.38)
- LCH (D50)
- lch(15.10 2.23 38.04)
- Display P3
- color(display-p3 0.1581 0.1456 0.1418)
- Linear sRGB
- color(srgb-linear 0.0222 0.0185 0.0176)
Gamut: sRGB and Display P3
#292524 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.096 and Display P3 reaches 0.108; this color uses 7% of the sRGB chroma available.
CSS snippets
.element {
color: #292524;
color: rgb(41 37 36);
color: hsl(12 6% 15%);
color: oklch(0.268 0.006 34.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.268 0.006 34.3);
}
/* arbitrary values */
class="text-[#292524] bg-[oklch(0.268_0.006_34.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1581 0.1456 0.1418); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #292524 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- taupe-800#2B2422
- neutral-800#262626
- zinc-800#27272A
- mist-800#22292B
- olive-800#2B2B22
- mauve-800#2A212C
- v3 gray-800#1F2937
- gray-800#1E2939
Lighter and darker, same hue and chroma
- #383433 · oklch(0.328 0.006 34.3) · ΔL +0.06
- #1B1716 · oklch(0.208 0.006 34.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?