HSL to HEX: #B8860B
Also known as: CSS darkgoldenrod
Result
hsl(42.66 88.72% 38.24%) → #B8860B
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. input
H = 42.66°, S = 88.72%, L = 38.24%
2. C
C = (1 − |2L − 1|) × S = 0.67853
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.48244 (H / 60° = 0.7110, sector 0)
4. m
m = L − C / 2 = 0.04313
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.67853, 0.48244, 0.00000) R = round((0.67853 + 0.04313) × 255) = 184 G = round((0.48244 + 0.04313) × 255) = 134 B = round((0.00000 + 0.04313) × 255) = 11
6. RGB → HEX
#B8860B
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?