HEX to OKLCH: #292524

Also known as: Tailwind stone-800, Tailwind v3 stone-800

Result

#292524 → oklch(0.268 0.006 34.3)

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. 1. sRGB → linear

    R: 41/255 = 0.16078 → 0.022174  (((x + 0.055) / 1.055)^2.4)
    G: 37/255 = 0.14510 → 0.018500  (((x + 0.055) / 1.055)^2.4)
    B: 36/255 = 0.14118 → 0.017642  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.019970
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.019187
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.018284
  3. 3. cube root

    l′ = ∛0.019970 = 0.271308
    m′ = ∛0.019187 = 0.267710
    s′ = ∛0.018284 = 0.263445
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.26848
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00519
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00354
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.00629
    H = atan2(b, a) = 34.297°
    L = 0.26848
  6. 6. OKLCH

    oklch(0.26848 0.00629 34.297)
    rounded: oklch(0.268 0.006 34.3)

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).

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

All converters →

Guides: What is OKLCH?