HEX to OKLCH: #2B2422

Also known as: Tailwind taupe-800

Result

#2B2422 → oklch(0.268 0.011 36.5)

Values are shown at full precision, so converting back gives exactly #2b2422. 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: 43/255 = 0.16863 → 0.024158  (((x + 0.055) / 1.055)^2.4)
    G: 36/255 = 0.14118 → 0.017642  (((x + 0.055) / 1.055)^2.4)
    B: 34/255 = 0.13333 → 0.015996  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.020243
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.018846
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.017181
  3. 3. cube root

    l′ = ∛0.020243 = 0.272538
    m′ = ∛0.018846 = 0.266117
    s′ = ∛0.017181 = 0.258035
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.01127
    H = atan2(b, a) = 36.494°
    L = 0.26750
  6. 6. OKLCH

    oklch(0.26750 0.01127 36.494)
    rounded: oklch(0.268 0.011 36.5)

All formats

HEX
#2b2422
RGB
rgb(43 36 34)
RGB (legacy)
rgb(43, 36, 34)
HSL
hsl(13.33 11.69% 15.10%) → hsl(13 12% 15%)
HWB
hwb(13 13% 83%)
OKLCH
oklch(0.268 0.011 36.5) · oklch(26.8% 0.011 36.5)
OKLab
oklab(0.268 0.009 0.007)
Lab (D50)
lab(14.95 3.09 2.62)
LCH (D50)
lch(14.95 4.06 40.28)
Display P3
color(display-p3 0.1641 0.1422 0.1346)
Linear sRGB
color(srgb-linear 0.0242 0.0176 0.0160)

Gamut: sRGB and Display P3

#2B2422 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.091 and Display P3 reaches 0.102; this color uses 12% of the sRGB chroma available.

CSS snippets

.element {
  color: #2b2422;
  color: rgb(43 36 34);
  color: hsl(13 12% 15%);
  color: oklch(0.268 0.011 36.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.268 0.011 36.5);
}
/* arbitrary values */
class="text-[#2b2422] bg-[oklch(0.268_0.011_36.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1641 0.1422 0.1346); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #2b2422 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

  • #3A3331 · oklch(0.328 0.011 36.5) · ΔL +0.06
  • #1D1614 · oklch(0.208 0.011 36.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?