HEX to HSL: #C70036
Also known as: Tailwind rose-700
Result
#C70036 → hsl(344 100% 39%)
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. RGB ÷ 255
R = 0.7804 G = 0.0000 B = 0.2118
2. max, min, Δ
max = 0.7804 min = 0.0000 Δ = max − min = 0.7804
3. L
L = (max + min) / 2 = 0.3902 = 39.02%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0000 − 0.2118) / 0.7804) mod 6) = 343.72°
6. HSL
hsl(343.72 100.00% 39.02%)
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?