HEX to HSL: #A0522D

Also known as: CSS sienna

Result

#A0522D → hsl(19 56% 40%)

Values are shown at full precision, so converting back gives exactly #a0522d. 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. RGB ÷ 255

    R = 0.6275
    G = 0.3216
    B = 0.1765
  2. 2. max, min, Δ

    max = 0.6275
    min = 0.1765
    Δ = max − min = 0.4510
  3. 3. L

    L = (max + min) / 2 = 0.4020 = 40.20%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.5610 = 56.10%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.3216 − 0.1765) / 0.4510) mod 6) = 19.30°
  6. 6. HSL

    hsl(19.30 56.10% 40.20%)

All formats

HEX
#a0522d
RGB
rgb(160 82 45)
RGB (legacy)
rgb(160, 82, 45)
HSL
hsl(19.30 56.10% 40.20%) → hsl(19 56% 40%)
HWB
hwb(19 18% 37%)
OKLCH
oklch(0.526 0.115 44.6) · oklch(52.6% 0.115 44.6)
OKLab
oklab(0.526 0.082 0.081)
Lab (D50)
lab(44.27 30.91 36.35)
LCH (D50)
lch(44.27 47.71 49.62)
Display P3
color(display-p3 0.5875 0.3376 0.2091)
Linear sRGB
color(srgb-linear 0.3515 0.0844 0.0262)

Gamut: sRGB and Display P3

#A0522D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.152 and Display P3 reaches 0.172; this color uses 76% of the sRGB chroma available.

CSS snippets

.element {
  color: #a0522d;
  color: rgb(160 82 45);
  color: hsl(19 56% 40%);
  color: oklch(0.526 0.115 44.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.526 0.115 44.6);
}
/* arbitrary values */
class="text-[#a0522d] bg-[oklch(0.526_0.115_44.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5875 0.3376 0.2091); }
}

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

  • #B4643F · oklch(0.586 0.115 44.6) · ΔL +0.06
  • #8D411A · oklch(0.466 0.115 44.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?