HEX to HSL: #FFA2A2
Also known as: Tailwind red-300
Result
#FFA2A2 → hsl(0 100% 82%)
Values are shown at full precision, so converting back gives exactly #ffa2a2. 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 = 1.0000 G = 0.6353 B = 0.6353
2. max, min, Δ
max = 1.0000 min = 0.6353 Δ = max − min = 0.3647
3. L
L = (max + min) / 2 = 0.8176 = 81.76%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.6353 − 0.6353) / 0.3647) mod 6) = 0.00°
6. HSL
hsl(0.00 100.00% 81.76%)
All formats
- HEX
- #ffa2a2
- RGB
- rgb(255 162 162)
- RGB (legacy)
- rgb(255, 162, 162)
- HSL
- hsl(0.00 100.00% 81.76%) → hsl(0 100% 82%)
- HWB
- hwb(0 64% 0%)
- OKLCH
- oklch(0.805 0.111 19.8) · oklch(80.5% 0.111 19.8)
- OKLab
- oklab(0.805 0.104 0.038)
- Lab (D50)
- lab(76.28 35.40 15.25)
- LCH (D50)
- lch(76.28 38.54 23.31)
- Display P3
- color(display-p3 0.9484 0.6519 0.6439)
- Linear sRGB
- color(srgb-linear 1.0000 0.3613 0.3613)
Gamut: sRGB and Display P3
#FFA2A2 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.111 and Display P3 reaches 0.143; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #ffa2a2;
color: rgb(255 162 162);
color: hsl(0 100% 82%);
color: oklch(0.805 0.111 19.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.805 0.111 19.8);
}
/* arbitrary values */
class="text-[#ffa2a2] bg-[oklch(0.805_0.111_19.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9484 0.6519 0.6439); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ffa2a2 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 red-300#FCA5A5
- rose-300#FFA1AD
- v3 rose-300#FDA4AF
- lightsalmon#FFA07A
- lightpink#FFB6C1
- darksalmon#E9967A
- v3 pink-300#F9A8D4
- pink-300#FDA5D5
Lighter and darker, same hue and chroma
- #FFB5B5 · oklch(0.865 0.111 19.8) · ΔL +0.06
- #EA8F90 · oklch(0.745 0.111 19.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?