HEX to OKLCH: #461901

Also known as: Tailwind amber-950

Result

#461901 → oklch(0.279 0.077 45.6)

Values are shown at full precision, so converting back gives exactly #461901. 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: 70/255 = 0.27451 → 0.061246  (((x + 0.055) / 1.055)^2.4)
    G: 25/255 = 0.09804 → 0.009721  (((x + 0.055) / 1.055)^2.4)
    B: 1/255 = 0.00392 → 0.000304  (÷ 12.92)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.030476
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.019628
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.008338
  3. 3. cube root

    l′ = ∛0.030476 = 0.312359
    m′ = ∛0.019628 = 0.269749
    s′ = ∛0.008338 = 0.202778
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.07734
    H = atan2(b, a) = 45.604°
    L = 0.27899
  6. 6. OKLCH

    oklch(0.27899 0.07734 45.604)
    rounded: oklch(0.279 0.077 45.6)

All formats

HEX
#461901
RGB
rgb(70 25 1)
RGB (legacy)
rgb(70, 25, 1)
HSL
hsl(20.87 97.18% 13.92%) → hsl(21 97% 14%)
HWB
hwb(21 0% 73%)
OKLCH
oklch(0.279 0.077 45.6) · oklch(27.9% 0.077 45.6)
OKLab
oklab(0.279 0.054 0.055)
Lab (D50)
lab(15.81 21.02 23.45)
LCH (D50)
lch(15.81 31.49 48.13)
Display P3
color(display-p3 0.2530 0.1087 0.0262)
Linear sRGB
color(srgb-linear 0.0612 0.0097 0.0003)

Gamut: sRGB and Display P3

#461901 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 98% of the sRGB chroma available.

CSS snippets

.element {
  color: #461901;
  color: rgb(70 25 1);
  color: hsl(21 97% 14%);
  color: oklch(0.279 0.077 45.6);
}

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

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2530 0.1087 0.0262); }
}

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

  • #572911 · oklch(0.339 0.077 45.6) · ΔL +0.06
  • #350900 · oklch(0.219 0.077 45.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?