HSL to HEX: #9F2D00
Also known as: Tailwind orange-800
Result
hsl(16.98 100.00% 31.18%) → #9F2D00
Values are shown at full precision, so converting back gives exactly #9f2d00. 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 = 16.98°, S = 100.00%, L = 31.18%
2. C
C = (1 − |2L − 1|) × S = 0.62360
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.17648 (H / 60° = 0.2830, sector 0)
4. m
m = L − C / 2 = 0.00000
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.62360, 0.17648, 0.00000) R = round((0.62360 + 0.00000) × 255) = 159 G = round((0.17648 + 0.00000) × 255) = 45 B = round((0.00000 + 0.00000) × 255) = 0
6. RGB → HEX
#9F2D00
All formats
- HEX
- #9f2d00
- RGB
- rgb(159 45 0)
- RGB (legacy)
- rgb(159, 45, 0)
- HSL
- hsl(16.98 100.00% 31.18%) → hsl(17 100% 31%)
- HWB
- hwb(17 0% 38%)
- OKLCH
- oklch(0.470 0.157 37.1) · oklch(47.0% 0.157 37.1)
- OKLab
- oklab(0.470 0.125 0.095)
- Lab (D50)
- lab(37.11 46.59 50.06)
- LCH (D50)
- lch(37.11 68.38 47.06)
- Display P3
- color(display-p3 0.5747 0.2117 0.0848)
- Linear sRGB
- color(srgb-linear 0.3467 0.0262 0.0000)
Gamut: sRGB and Display P3
#9F2D00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.157 and Display P3 reaches 0.177; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #9f2d00;
color: rgb(159 45 0);
color: hsl(17 100% 31%);
color: oklch(0.470 0.157 37.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.470 0.157 37.1);
}
/* arbitrary values */
class="text-[#9f2d00] bg-[oklch(0.470_0.157_37.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5747 0.2117 0.0848); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #9f2d00 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 orange-800#9A3412
- amber-800#973C00
- brown#A52A2A
- v3 red-800#991B1B
- v3 amber-800#92400E
- red-800#9F0712
- firebrick#B22222
- saddlebrown#8B4513
Lighter and darker, same hue and chroma
- #B3411C · oklch(0.530 0.157 37.1) · ΔL +0.06
- #8B1600 · oklch(0.410 0.157 37.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?