HSL to HEX: #8B4513

Also known as: CSS saddlebrown

Result

hsl(25.00 75.95% 30.98%) → #8B4513

Values are shown at full precision, so converting back gives exactly #8b4513. 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 = 25.00°, S = 75.95%, L = 30.98%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.47059, 0.19608, 0.00000)
    R = round((0.47059 + 0.07451) × 255) = 139
    G = round((0.19608 + 0.07451) × 255) = 69
    B = round((0.00000 + 0.07451) × 255) = 19
  6. 6. RGB → HEX

    #8B4513

All formats

HEX
#8b4513
RGB
rgb(139 69 19)
RGB (legacy)
rgb(139, 69, 19)
HSL
hsl(25.00 75.95% 30.98%) → hsl(25 76% 31%)
HWB
hwb(25 7% 45%)
OKLCH
oklch(0.471 0.112 50.8) · oklch(47.1% 0.112 50.8)
OKLab
oklab(0.471 0.071 0.087)
Lab (D50)
lab(37.93 28.08 41.57)
LCH (D50)
lch(37.93 50.16 55.96)
Display P3
color(display-p3 0.5095 0.2852 0.1266)
Linear sRGB
color(srgb-linear 0.2582 0.0595 0.0065)

Gamut: sRGB and Display P3

#8B4513 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.123 and Display P3 reaches 0.140; this color uses 91% of the sRGB chroma available.

CSS snippets

.element {
  color: #8b4513;
  color: rgb(139 69 19);
  color: hsl(25 76% 31%);
  color: oklch(0.471 0.112 50.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.471 0.112 50.8);
}
/* arbitrary values */
class="text-[#8b4513] bg-[oklch(0.471_0.112_50.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5095 0.2852 0.1266); }
}

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

  • #9E5628 · oklch(0.531 0.112 50.8) · ΔL +0.06
  • #783400 · oklch(0.411 0.112 50.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?