HEX to OKLCH: #451A03

Also known as: Tailwind v3 amber-950

Result

#451A03 → oklch(0.279 0.074 45.6)

Values are shown at full precision, so converting back gives exactly #451a03. 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: 69/255 = 0.27059 → 0.059511  (((x + 0.055) / 1.055)^2.4)
    G: 26/255 = 0.10196 → 0.010330  (((x + 0.055) / 1.055)^2.4)
    B: 3/255 = 0.01176 → 0.000911  (÷ 12.92)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.030119
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.019740
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.008739
  3. 3. cube root

    l′ = ∛0.030119 = 0.311133
    m′ = ∛0.019740 = 0.270260
    s′ = ∛0.008739 = 0.205976
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.07420
    H = atan2(b, a) = 45.635°
    L = 0.27912
  6. 6. OKLCH

    oklch(0.27912 0.07420 45.635)
    rounded: oklch(0.279 0.074 45.6)

All formats

HEX
#451a03
RGB
rgb(69 26 3)
RGB (legacy)
rgb(69, 26, 3)
HSL
hsl(20.91 91.67% 14.12%) → hsl(21 92% 14%)
HWB
hwb(21 1% 73%)
OKLCH
oklch(0.279 0.074 45.6) · oklch(27.9% 0.074 45.6)
OKLab
oklab(0.279 0.052 0.053)
Lab (D50)
lab(15.85 20.07 22.65)
LCH (D50)
lch(15.85 30.26 48.45)
Display P3
color(display-p3 0.2498 0.1119 0.0335)
Linear sRGB
color(srgb-linear 0.0595 0.0103 0.0009)

Gamut: sRGB and Display P3

#451A03 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.079 and Display P3 reaches 0.090; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #451a03;
  color: rgb(69 26 3);
  color: hsl(21 92% 14%);
  color: oklch(0.279 0.074 45.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.279 0.074 45.6);
}
/* arbitrary values */
class="text-[#451a03] bg-[oklch(0.279_0.074_45.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2498 0.1119 0.0335); }
}

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

  • #562A13 · oklch(0.339 0.074 45.6) · ΔL +0.06
  • #340A00 · oklch(0.219 0.074 45.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?