HEX to HSL: #D08700
Also known as: Tailwind yellow-600
Result
#D08700 → hsl(39 100% 41%)
Values are shown at full precision, so converting back gives exactly #d08700. 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.8157 G = 0.5294 B = 0.0000
2. max, min, Δ
max = 0.8157 min = 0.0000 Δ = max − min = 0.8157
3. L
L = (max + min) / 2 = 0.4078 = 40.78%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.5294 − 0.0000) / 0.8157) mod 6) = 38.94°
6. HSL
hsl(38.94 100.00% 40.78%)
All formats
- HEX
- #d08700
- RGB
- rgb(208 135 0)
- RGB (legacy)
- rgb(208, 135, 0)
- HSL
- hsl(38.94 100.00% 40.78%) → hsl(39 100% 41%)
- HWB
- hwb(39 0% 18%)
- OKLCH
- oklch(0.682 0.146 71.5) · oklch(68.2% 0.146 71.5)
- OKLab
- oklab(0.682 0.047 0.139)
- Lab (D50)
- lab(62.85 22.94 68.03)
- LCH (D50)
- lch(62.85 71.79 71.37)
- Display P3
- color(display-p3 0.7747 0.5422 0.1839)
- Linear sRGB
- color(srgb-linear 0.6308 0.2423 0.0000)
Gamut: sRGB and Display P3
#D08700 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.146 and Display P3 reaches 0.168; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #d08700;
color: rgb(208 135 0);
color: hsl(39 100% 41%);
color: oklch(0.682 0.146 71.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.682 0.146 71.5);
}
/* arbitrary values */
class="text-[#d08700] bg-[oklch(0.682_0.146_71.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7747 0.5422 0.1839); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #d08700 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 yellow-600#CA8A04
- peru#CD853F
- v3 amber-600#D97706
- darkgoldenrod#B8860B
- amber-600#E17100
- chocolate#D2691E
- goldenrod#DAA520
- v3 orange-500#F97316
Lighter and darker, same hue and chroma
- #E49A2B · oklch(0.742 0.146 71.5) · ΔL +0.06
- #BC7500 · oklch(0.622 0.146 71.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?