OKLCH to HEX: #713F12

Also known as: Tailwind v3 yellow-900

Result

oklch(0.42100 0.08970 57.708) → #713F12

Values are shown at full precision, so converting back gives exactly #713f12. 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.42100 0.08970 57.708)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.04792
    b = C·sin H = 0.07583
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.456357
    m′ = L − 0.1056·a − 0.0639·b = 0.411100
    s′ = L − 0.0895·a − 1.2915·b = 0.318783
  4. 4. cube

    l = 0.456357³ = 0.095041
    m = 0.411100³ = 0.069477
    s = 0.318783³ = 0.032395
  5. 5. LMS → linear sRGB

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

    R = 0.44314 × 255 = 113.00 → 113
    G = 0.24706 × 255 = 63.00 → 63
    B = 0.07059 × 255 = 18.00 → 18
  7. 7. RGB → HEX

    #713F12

All formats

HEX
#713f12
RGB
rgb(113 63 18)
RGB (legacy)
rgb(113, 63, 18)
HSL
hsl(28.42 72.52% 25.69%) → hsl(28 73% 26%)
HWB
hwb(28 7% 56%)
OKLCH
oklch(0.421 0.090 57.7) · oklch(42.1% 0.090 57.7)
OKLab
oklab(0.421 0.048 0.076)
Lab (D50)
lab(32.42 19.77 35.43)
LCH (D50)
lch(32.42 40.57 60.85)
Display P3
color(display-p3 0.4164 0.2566 0.1117)
Linear sRGB
color(srgb-linear 0.1651 0.0497 0.0060)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #713f12;
  color: rgb(113 63 18);
  color: hsl(28 73% 26%);
  color: oklch(0.421 0.090 57.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.421 0.090 57.7);
}
/* arbitrary values */
class="text-[#713f12] bg-[oklch(0.421_0.090_57.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4164 0.2566 0.1117); }
}

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

  • #835025 · oklch(0.481 0.090 57.7) · ΔL +0.06
  • #5F2F00 · oklch(0.361 0.090 57.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?