HEX to OKLCH: #733E0A

Also known as: Tailwind yellow-900

Result

#733E0A → oklch(0.422 0.095 57.9)

Values are shown at full precision, so converting back gives exactly #733e0a. 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: 115/255 = 0.45098 → 0.171441  (((x + 0.055) / 1.055)^2.4)
    G: 62/255 = 0.24314 → 0.048172  (((x + 0.055) / 1.055)^2.4)
    B: 10/255 = 0.03922 → 0.003035  (÷ 12.92)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.096664
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.069445
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.030622
  3. 3. cube root

    l′ = ∛0.096664 = 0.458939
    m′ = ∛0.069445 = 0.411037
    s′ = ∛0.030622 = 0.312855
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.09515
    H = atan2(b, a) = 57.939°
    L = 0.42152
  6. 6. OKLCH

    oklch(0.42152 0.09515 57.939)
    rounded: oklch(0.422 0.095 57.9)

All formats

HEX
#733e0a
RGB
rgb(115 62 10)
RGB (legacy)
rgb(115, 62, 10)
HSL
hsl(29.71 84.00% 24.51%) → hsl(30 84% 25%)
HWB
hwb(30 4% 55%)
OKLCH
oklch(0.422 0.095 57.9) · oklch(42.2% 0.095 57.9)
OKLab
oklab(0.422 0.051 0.081)
Lab (D50)
lab(32.45 21.07 38.80)
LCH (D50)
lch(32.45 44.16 61.50)
Display P3
color(display-p3 0.4230 0.2534 0.0944)
Linear sRGB
color(srgb-linear 0.1714 0.0482 0.0030)

Gamut: sRGB and Display P3

#733E0A 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 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #733e0a;
  color: rgb(115 62 10);
  color: hsl(30 84% 25%);
  color: oklch(0.422 0.095 57.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.422 0.095 57.9);
}
/* arbitrary values */
class="text-[#733e0a] bg-[oklch(0.422_0.095_57.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4230 0.2534 0.0944); }
}

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

  • #854F20 · oklch(0.482 0.095 57.9) · ΔL +0.06
  • #612E00 · oklch(0.362 0.095 57.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?