HEX to HSL: #B8860B
Also known as: CSS darkgoldenrod
Result
#B8860B → hsl(43 89% 38%)
Values are shown at full precision, so converting back gives exactly #b8860b. 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. RGB ÷ 255
R = 0.7216 G = 0.5255 B = 0.0431
2. max, min, Δ
max = 0.7216 min = 0.0431 Δ = max − min = 0.6784
3. L
L = (max + min) / 2 = 0.3824 = 38.24%
4. S
S = Δ / (1 − |2L − 1|) = 0.8872 = 88.72%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.5255 − 0.0431) / 0.6784) mod 6) = 42.66°
6. HSL
hsl(42.66 88.72% 38.24%)
All formats
- HEX
- #b8860b
- RGB
- rgb(184 134 11)
- RGB (legacy)
- rgb(184, 134, 11)
- HSL
- hsl(42.66 88.72% 38.24%) → hsl(43 89% 38%)
- HWB
- hwb(43 4% 28%)
- OKLCH
- oklch(0.652 0.132 81.6) · oklch(65.2% 0.132 81.6)
- OKLab
- oklab(0.652 0.019 0.131)
- Lab (D50)
- lab(59.69 13.06 62.65)
- LCH (D50)
- lch(59.69 63.99 78.22)
- Display P3
- color(display-p3 0.6919 0.5335 0.1846)
- Linear sRGB
- color(srgb-linear 0.4793 0.2384 0.0033)
Gamut: sRGB and Display P3
#B8860B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.134 and Display P3 reaches 0.155; this color uses 98% of the sRGB chroma available.
CSS snippets
.element {
color: #b8860b;
color: rgb(184 134 11);
color: hsl(43 89% 38%);
color: oklch(0.652 0.132 81.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.652 0.132 81.6);
}
/* arbitrary values */
class="text-[#b8860b] bg-[oklch(0.652_0.132_81.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6919 0.5335 0.1846); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #b8860b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 yellow-600#CA8A04
- yellow-600#D08700
- peru#CD853F
- v3 amber-600#D97706
- chocolate#D2691E
- amber-600#E17100
- olive#808000
- goldenrod#DAA520
Lighter and darker, same hue and chroma
- #CB992D · oklch(0.712 0.132 81.6) · ΔL +0.06
- #A57400 · oklch(0.592 0.132 81.6) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?