HEX to HSL: #A3004C
Also known as: Tailwind pink-800
Result
#A3004C → hsl(332 100% 32%)
Values are shown at full precision, so converting back gives exactly #a3004c. 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.6392 G = 0.0000 B = 0.2980
2. max, min, Δ
max = 0.6392 min = 0.0000 Δ = max − min = 0.6392
3. L
L = (max + min) / 2 = 0.3196 = 31.96%
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.2980) / 0.6392) mod 6) = 332.02°
6. HSL
hsl(332.02 100.00% 31.96%)
All formats
- HEX
- #a3004c
- RGB
- rgb(163 0 76)
- RGB (legacy)
- rgb(163, 0, 76)
- HSL
- hsl(332.02 100.00% 31.96%) → hsl(332 100% 32%)
- HWB
- hwb(332 0% 36%)
- OKLCH
- oklch(0.461 0.185 4.1) · oklch(46.1% 0.185 4.1)
- OKLab
- oklab(0.461 0.185 0.013)
- Lab (D50)
- lab(35.18 59.80 6.31)
- LCH (D50)
- lch(35.18 60.13 6.03)
- Display P3
- color(display-p3 0.5849 0.1130 0.2976)
- Linear sRGB
- color(srgb-linear 0.3663 0.0000 0.0723)
Gamut: sRGB and Display P3
#A3004C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.185 and Display P3 reaches 0.209; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #a3004c;
color: rgb(163 0 76);
color: hsl(332 100% 32%);
color: oklch(0.461 0.185 4.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.461 0.185 4.1);
}
/* arbitrary values */
class="text-[#a3004c] bg-[oklch(0.461_0.185_4.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5849 0.1130 0.2976); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a3004c calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 pink-800#9D174D
- v3 rose-800#9F1239
- rose-800#A50036
- rose-900#8B0836
- pink-900#861043
- v3 rose-900#881337
- v3 pink-700#BE185D
- v3 pink-900#831843
Lighter and darker, same hue and chroma
- #B8245D · oklch(0.521 0.185 4.1) · ΔL +0.06
- #8E003C · oklch(0.401 0.185 4.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?