OKLCH to HEX: #432004

Also known as: Tailwind yellow-950

Result

oklch(0.28709 0.06625 54.588) → #432004

Values are shown at full precision, so converting back gives exactly #432004. 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.28709 0.06625 54.588)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.03839
    b = C·sin H = 0.05399
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.313957
    m′ = L − 0.1056·a − 0.0639·b = 0.279590
    s′ = L − 0.0895·a − 1.2915·b = 0.213922
  4. 4. cube

    l = 0.313957³ = 0.030946
    m = 0.279590³ = 0.021856
    s = 0.213922³ = 0.009790
  5. 5. LMS → linear sRGB

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

    R = 0.26275 × 255 = 67.00 → 67
    G = 0.12549 × 255 = 32.00 → 32
    B = 0.01568 × 255 = 4.00 → 4
  7. 7. RGB → HEX

    #432004

All formats

HEX
#432004
RGB
rgb(67 32 4)
RGB (legacy)
rgb(67, 32, 4)
HSL
hsl(26.67 88.73% 13.92%) → hsl(27 89% 14%)
HWB
hwb(27 2% 74%)
OKLCH
oklch(0.287 0.066 54.6) · oklch(28.7% 0.066 54.6)
OKLab
oklab(0.287 0.038 0.054)
Lab (D50)
lab(16.95 15.61 23.46)
LCH (D50)
lch(16.95 28.18 56.37)
Display P3
color(display-p3 0.2446 0.1325 0.0402)
Linear sRGB
color(srgb-linear 0.0561 0.0144 0.0012)

Gamut: sRGB and Display P3

#432004 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.071 and Display P3 reaches 0.081; this color uses 93% of the sRGB chroma available.

CSS snippets

.element {
  color: #432004;
  color: rgb(67 32 4);
  color: hsl(27 89% 14%);
  color: oklch(0.287 0.066 54.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.287 0.066 54.6);
}
/* arbitrary values */
class="text-[#432004] bg-[oklch(0.287_0.066_54.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2446 0.1325 0.0402); }
}

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

  • #542F15 · oklch(0.347 0.066 54.6) · ΔL +0.06
  • #331100 · oklch(0.227 0.066 54.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?