HEX to OKLCH: #713F12

Also known as: Tailwind v3 yellow-900

Result

#713F12 → oklch(0.421 0.090 57.7)

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

    R: 113/255 = 0.44314 → 0.165132  (((x + 0.055) / 1.055)^2.4)
    G: 63/255 = 0.24706 → 0.049707  (((x + 0.055) / 1.055)^2.4)
    B: 18/255 = 0.07059 → 0.006049  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.095041
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.069477
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.032395
  3. 3. cube root

    l′ = ∛0.095041 = 0.456357
    m′ = ∛0.069477 = 0.411099
    s′ = ∛0.032395 = 0.318783
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.08970
    H = atan2(b, a) = 57.708°
    L = 0.42100
  6. 6. OKLCH

    oklch(0.42100 0.08970 57.708)
    rounded: oklch(0.421 0.090 57.7)

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?