HSL to HEX: #C70036
Also known as: Tailwind rose-700
Result
hsl(343.72 100.00% 39.02%) → #C70036
Values are shown at full precision, so converting back gives exactly #c70036. 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 = 343.72°, S = 100.00%, L = 39.02%
2. C
C = (1 − |2L − 1|) × S = 0.78040
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.21175 (H / 60° = 5.7287, sector 5)
4. m
m = L − C / 2 = 0.00000
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.78040, 0.00000, 0.21175) R = round((0.78040 + 0.00000) × 255) = 199 G = round((0.00000 + 0.00000) × 255) = 0 B = round((0.21175 + 0.00000) × 255) = 54
6. RGB → HEX
#C70036
All formats
- HEX
- #c70036
- RGB
- rgb(199 0 54)
- RGB (legacy)
- rgb(199, 0, 54)
- HSL
- hsl(343.72 100.00% 39.02%) → hsl(344 100% 39%)
- HWB
- hwb(344 0% 22%)
- OKLCH
- oklch(0.525 0.211 18.9) · oklch(52.5% 0.211 18.9)
- OKLab
- oklab(0.525 0.199 0.068)
- Lab (D50)
- lab(42.66 67.81 31.86)
- LCH (D50)
- lch(42.66 74.92 25.16)
- Display P3
- color(display-p3 0.7151 0.1471 0.2303)
- Linear sRGB
- color(srgb-linear 0.5711 0.0000 0.0369)
Gamut: sRGB and Display P3
#C70036 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.211 and Display P3 reaches 0.238; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #c70036;
color: rgb(199 0 54);
color: hsl(344 100% 39%);
color: oklch(0.525 0.211 18.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.525 0.211 18.9);
}
/* arbitrary values */
class="text-[#c70036] bg-[oklch(0.525_0.211_18.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7151 0.1471 0.2303); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c70036 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 rose-700#BE123C
- red-700#C10007
- v3 red-700#B91C1C
- crimson#DC143C
- firebrick#B22222
- pink-700#C6005C
- v3 pink-700#BE185D
- v3 red-600#DC2626
Lighter and darker, same hue and chroma
- #DD2A47 · oklch(0.585 0.211 18.9) · ΔL +0.06
- #B10025 · oklch(0.465 0.211 18.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?