HSL to HEX: #861043
Also known as: Tailwind pink-900
Result
hsl(334.07 78.67% 29.41%) → #861043
Values are shown at full precision, so converting back gives exactly #861043. 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 = 334.07°, S = 78.67%, L = 29.41%
2. C
C = (1 − |2L − 1|) × S = 0.46274
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.19998 (H / 60° = 5.5678, sector 5)
4. m
m = L − C / 2 = 0.06273
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.46274, 0.00000, 0.19998) R = round((0.46274 + 0.06273) × 255) = 134 G = round((0.00000 + 0.06273) × 255) = 16 B = round((0.19998 + 0.06273) × 255) = 67
6. RGB → HEX
#861043
All formats
- HEX
- #861043
- RGB
- rgb(134 16 67)
- RGB (legacy)
- rgb(134, 16, 67)
- HSL
- hsl(334.07 78.67% 29.41%) → hsl(334 79% 29%)
- HWB
- hwb(334 6% 47%)
- OKLCH
- oklch(0.408 0.153 2.2) · oklch(40.8% 0.153 2.2)
- OKLab
- oklab(0.408 0.153 0.006)
- Lab (D50)
- lab(29.45 49.47 3.14)
- LCH (D50)
- lch(29.45 49.57 3.63)
- Display P3
- color(display-p3 0.4811 0.1173 0.2614)
- Linear sRGB
- color(srgb-linear 0.2384 0.0052 0.0561)
Gamut: sRGB and Display P3
#861043 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.165 and Display P3 reaches 0.186; this color uses 93% of the sRGB chroma available.
CSS snippets
.element {
color: #861043;
color: rgb(134 16 67);
color: hsl(334 79% 29%);
color: oklch(0.408 0.153 2.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.408 0.153 2.2);
}
/* arbitrary values */
class="text-[#861043] bg-[oklch(0.408_0.153_2.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4811 0.1173 0.2614); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #861043 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 pink-900#831843
- v3 rose-900#881337
- rose-900#8B0836
- v3 pink-800#9D174D
- v3 rose-800#9F1239
- pink-800#A3004C
- red-900#82181A
- v3 red-900#7F1D1D
Lighter and darker, same hue and chroma
- #9A2853 · oklch(0.468 0.153 2.2) · ΔL +0.06
- #720033 · oklch(0.348 0.153 2.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?