RGB to HEX: #A0522D

Also known as: CSS sienna

Result

rgb(160 82 45) → #A0522D

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. base 10 → base 16

    R = 160 = 10×16 + 0 → A0
    G = 82 = 5×16 + 2 → 52
    B = 45 = 2×16 + 13 → 2D
  2. 2. pairs → HEX

    A0 52 2D → #A0522D

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?