OKLCH to HEX: #733E0A

Also known as: Tailwind yellow-900

Result

oklch(0.42152 0.09515 57.939) → #733E0A

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. input

    oklch(0.42152 0.09515 57.939)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.05051
    b = C·sin H = 0.08064
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.458940
    m′ = L − 0.1056·a − 0.0639·b = 0.411039
    s′ = L − 0.0895·a − 1.2915·b = 0.312857
  4. 4. cube

    l = 0.458940³ = 0.096665
    m = 0.411039³ = 0.069446
    s = 0.312857³ = 0.030622
  5. 5. LMS → linear sRGB

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

    R = 0.45098 × 255 = 115.00 → 115
    G = 0.24314 × 255 = 62.00 → 62
    B = 0.03922 × 255 = 10.00 → 10
  7. 7. RGB → HEX

    #733E0A

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?