OKLCH to HEX: #973C00

Also known as: Tailwind amber-800

Result

oklch(0.47468 0.13576 44.981) → #973C00

Values are shown at full precision, so converting back gives exactly #973c00. 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.47468 0.13576 44.981)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.09603
    b = C·sin H = 0.09596
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.533449
    m′ = L − 0.1056·a − 0.0639·b = 0.458415
    s′ = L − 0.0895·a − 1.2915·b = 0.342150
  4. 4. cube

    l = 0.533449³ = 0.151803
    m = 0.458415³ = 0.096334
    s = 0.342150³ = 0.040054
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.309468
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.045183
    B = −0.0042·l − 0.7034·m + 1.7076·s = -0.000003
  6. 6. linear → sRGB, × 255

    R = 0.59216 × 255 = 151.00 → 151
    G = 0.23529 × 255 = 60.00 → 60
    B = 0.00000 × 255 = 0.00 → 0
  7. 7. RGB → HEX

    #973C00

All formats

HEX
#973c00
RGB
rgb(151 60 0)
RGB (legacy)
rgb(151, 60, 0)
HSL
hsl(23.84 100.00% 29.61%) → hsl(24 100% 30%)
HWB
hwb(24 0% 41%)
OKLCH
oklch(0.475 0.136 45.0) · oklch(47.5% 0.136 45.0)
OKLab
oklab(0.475 0.096 0.096)
Lab (D50)
lab(38.07 37.26 49.37)
LCH (D50)
lch(38.07 61.85 52.96)
Display P3
color(display-p3 0.5493 0.2576 0.0901)
Linear sRGB
color(srgb-linear 0.3095 0.0452 0.0000)

Gamut: sRGB and Display P3

#973C00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.136 and Display P3 reaches 0.154; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #973c00;
  color: rgb(151 60 0);
  color: hsl(24 100% 30%);
  color: oklch(0.475 0.136 45.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.475 0.136 45.0);
}
/* arbitrary values */
class="text-[#973c00] bg-[oklch(0.475_0.136_45.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5493 0.2576 0.0901); }
}

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

  • #AB4E1D · oklch(0.535 0.136 45.0) · ΔL +0.06
  • #832A00 · oklch(0.415 0.136 45.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?