HSL to HEX: #FFA2A2
Also known as: Tailwind red-300
Result
hsl(0.00 100.00% 81.76%) → #FFA2A2
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. input
H = 0.00°, S = 100.00%, L = 81.76%
2. C
C = (1 − |2L − 1|) × S = 0.36480
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00000 (H / 60° = 0.0000, sector 0)
4. m
m = L − C / 2 = 0.63520
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.36480, 0.00000, 0.00000) R = round((0.36480 + 0.63520) × 255) = 255 G = round((0.00000 + 0.63520) × 255) = 162 B = round((0.00000 + 0.63520) × 255) = 162
6. RGB → HEX
#FFA2A2
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?