OKLCH to HEX: #422006

Also known as: Tailwind v3 yellow-950

Result

oklch(0.28565 0.06393 53.813) → #422006

Values are shown at full precision, so converting back gives exactly #422006. 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. input

    oklch(0.28565 0.06393 53.813)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.03775
    b = C·sin H = 0.05160
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.311745
    m′ = L − 0.1056·a − 0.0639·b = 0.278371
    s′ = L − 0.0895·a − 1.2915·b = 0.215635
  4. 4. cube

    l = 0.311745³ = 0.030297
    m = 0.278371³ = 0.021571
    s = 0.215635³ = 0.010027
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.054478
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.014443
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.001821
  6. 6. linear → sRGB, × 255

    R = 0.25882 × 255 = 66.00 → 66
    G = 0.12549 × 255 = 32.00 → 32
    B = 0.02353 × 255 = 6.00 → 6
  7. 7. RGB → HEX

    #422006

All formats

HEX
#422006
RGB
rgb(66 32 6)
RGB (legacy)
rgb(66, 32, 6)
HSL
hsl(26.00 83.33% 14.12%) → hsl(26 83% 14%)
HWB
hwb(26 2% 74%)
OKLCH
oklch(0.286 0.064 53.8) · oklch(28.6% 0.064 53.8)
OKLab
oklab(0.286 0.038 0.052)
Lab (D50)
lab(16.79 15.18 22.41)
LCH (D50)
lch(16.79 27.07 55.89)
Display P3
color(display-p3 0.2411 0.1322 0.0466)
Linear sRGB
color(srgb-linear 0.0545 0.0144 0.0018)

Gamut: sRGB and Display P3

#422006 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.072 and Display P3 reaches 0.082; this color uses 89% of the sRGB chroma available.

CSS snippets

.element {
  color: #422006;
  color: rgb(66 32 6);
  color: hsl(26 83% 14%);
  color: oklch(0.286 0.064 53.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.286 0.064 53.8);
}
/* arbitrary values */
class="text-[#422006] bg-[oklch(0.286_0.064_53.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2411 0.1322 0.0466); }
}

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

  • #532F16 · oklch(0.346 0.064 53.8) · ΔL +0.06
  • #321100 · oklch(0.226 0.064 53.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?