HSL to HEX: #B45309

Also known as: Tailwind v3 amber-700

Result

hsl(25.96 90.48% 37.06%) → #B45309

Values are shown at full precision, so converting back gives exactly #b45309. 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.96°, S = 90.48%, L = 37.06%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.67064, 0.29016, 0.00000)
    R = round((0.67064 + 0.03528) × 255) = 180
    G = round((0.29016 + 0.03528) × 255) = 83
    B = round((0.00000 + 0.03528) × 255) = 9
  6. 6. RGB → HEX

    #B45309

All formats

HEX
#b45309
RGB
rgb(180 83 9)
RGB (legacy)
rgb(180, 83, 9)
HSL
hsl(25.96 90.48% 37.06%) → hsl(26 90% 37%)
HWB
hwb(26 4% 29%)
OKLCH
oklch(0.555 0.146 49.0) · oklch(55.5% 0.146 49.0)
OKLab
oklab(0.555 0.095 0.110)
Lab (D50)
lab(47.46 37.77 54.90)
LCH (D50)
lch(47.46 66.64 55.47)
Display P3
color(display-p3 0.6582 0.3471 0.1360)
Linear sRGB
color(srgb-linear 0.4564 0.0865 0.0027)

Gamut: sRGB and Display P3

#B45309 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.149 and Display P3 reaches 0.169; this color uses 98% of the sRGB chroma available.

CSS snippets

.element {
  color: #b45309;
  color: rgb(180 83 9);
  color: hsl(26 90% 37%);
  color: oklch(0.555 0.146 49.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.555 0.146 49.0);
}
/* arbitrary values */
class="text-[#b45309] bg-[oklch(0.555_0.146_49.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6582 0.3471 0.1360); }
}

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

  • #C86526 · oklch(0.615 0.146 49.0) · ΔL +0.06
  • #A04100 · oklch(0.495 0.146 49.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?