HEX to RGB: #8B4513
Also known as: CSS saddlebrown
Result
#8B4513 → rgb(139 69 19)
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. HEX → pairs
#8B4513 → 8B | 45 | 13
2. base 16 → base 10
R = 8B₁₆ = 8×16 + 11 = 139 G = 45₁₆ = 4×16 + 5 = 69 B = 13₁₆ = 1×16 + 3 = 19
3. RGB
rgb(139 69 19)
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).
- v3 amber-800#92400E
- yellow-800#894B00
- v3 yellow-800#854D0E
- amber-800#973C00
- v3 orange-800#9A3412
- yellow-900#733E0A
- orange-800#9F2D00
- v3 yellow-900#713F12
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
Guides: What is OKLCH?