HSL to HEX: #460809
Also known as: Tailwind red-950
Result
hsl(359.03 79.49% 15.29%) → #460809
Values are shown at full precision, so converting back gives exactly #460809. 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 = 359.03°, S = 79.49%, L = 15.29%
2. C
C = (1 − |2L − 1|) × S = 0.24308
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00393 (H / 60° = 5.9838, sector 5)
4. m
m = L − C / 2 = 0.03136
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.24308, 0.00000, 0.00393) R = round((0.24308 + 0.03136) × 255) = 70 G = round((0.00000 + 0.03136) × 255) = 8 B = round((0.00393 + 0.03136) × 255) = 9
6. RGB → HEX
#460809
All formats
- HEX
- #460809
- RGB
- rgb(70 8 9)
- RGB (legacy)
- rgb(70, 8, 9)
- HSL
- hsl(359.03 79.49% 15.29%) → hsl(359 79% 15%)
- HWB
- hwb(359 3% 73%)
- OKLCH
- oklch(0.257 0.092 25.8) · oklch(25.7% 0.092 25.8)
- OKLab
- oklab(0.257 0.083 0.040)
- Lab (D50)
- lab(12.94 28.99 16.58)
- LCH (D50)
- lch(12.94 33.39 29.77)
- Display P3
- color(display-p3 0.2498 0.0548 0.0474)
- Linear sRGB
- color(srgb-linear 0.0612 0.0024 0.0027)
Gamut: sRGB and Display P3
#460809 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.105 and Display P3 reaches 0.118; this color uses 88% of the sRGB chroma available.
CSS snippets
.element {
color: #460809;
color: rgb(70 8 9);
color: hsl(359 79% 15%);
color: oklch(0.257 0.092 25.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.257 0.092 25.8);
}
/* arbitrary values */
class="text-[#460809] bg-[oklch(0.257_0.092_25.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2498 0.0548 0.0474); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #460809 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 red-950#450A0A
- orange-950#441306
- v3 orange-950#431407
- v3 rose-950#4C0519
- rose-950#4D0218
- amber-950#461901
- v3 amber-950#451A03
- v3 pink-950#500724
Lighter and darker, same hue and chroma
- #581A18 · oklch(0.317 0.092 25.8) · ΔL +0.06
- #340000 · oklch(0.197 0.092 25.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?