HEX to RGB: #9F2D00
Also known as: Tailwind orange-800
Result
#9F2D00 → rgb(159 45 0)
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. HEX → pairs
#9F2D00 → 9F | 2D | 00
2. base 16 → base 10
R = 9F₁₆ = 9×16 + 15 = 159 G = 2D₁₆ = 2×16 + 13 = 45 B = 00₁₆ = 0×16 + 0 = 0
3. RGB
rgb(159 45 0)
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?