HSL to HEX: #461901

Also known as: Tailwind amber-950

Result

hsl(20.87 97.18% 13.92%) → #461901

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

    H = 20.87°, S = 97.18%, L = 13.92%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.27055
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.09411   (H / 60° = 0.3478, sector 0)
  4. 4. m

    m = L − C / 2 = 0.00393
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.27055, 0.09411, 0.00000)
    R = round((0.27055 + 0.00393) × 255) = 70
    G = round((0.09411 + 0.00393) × 255) = 25
    B = round((0.00000 + 0.00393) × 255) = 1
  6. 6. RGB → HEX

    #461901

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?