HSL to HEX: #A5B4FC
Also known as: Tailwind v3 indigo-300
Result
hsl(229.66 93.55% 81.76%) → #A5B4FC
Values are shown at full precision, so converting back gives exactly #a5b4fc. 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 = 229.66°, S = 93.55%, L = 81.76%
2. C
C = (1 − |2L − 1|) × S = 0.34127
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.05881 (H / 60° = 3.8277, sector 3)
4. m
m = L − C / 2 = 0.64696
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.05881, 0.34127) R = round((0.00000 + 0.64696) × 255) = 165 G = round((0.05881 + 0.64696) × 255) = 180 B = round((0.34127 + 0.64696) × 255) = 252
6. RGB → HEX
#A5B4FC
All formats
- HEX
- #a5b4fc
- RGB
- rgb(165 180 252)
- RGB (legacy)
- rgb(165, 180, 252)
- HSL
- hsl(229.66 93.55% 81.76%) → hsl(230 94% 82%)
- HWB
- hwb(230 65% 1%)
- OKLCH
- oklch(0.785 0.104 274.7) · oklch(78.5% 0.104 274.7)
- OKLab
- oklab(0.785 0.009 -0.104)
- Lab (D50)
- lab(74.18 7.30 -37.79)
- LCH (D50)
- lch(74.18 38.49 280.93)
- Display P3
- color(display-p3 0.6580 0.7040 0.9667)
- Linear sRGB
- color(srgb-linear 0.3763 0.4564 0.9734)
Gamut: sRGB and Display P3
#A5B4FC is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.109 and Display P3 reaches 0.119; this color uses 96% of the sRGB chroma available.
CSS snippets
.element {
color: #a5b4fc;
color: rgb(165 180 252);
color: hsl(230 94% 82%);
color: oklch(0.785 0.104 274.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.785 0.104 274.7);
}
/* arbitrary values */
class="text-[#a5b4fc] bg-[oklch(0.785_0.104_274.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6580 0.7040 0.9667); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a5b4fc calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- indigo-300#A3B3FF
- v3 violet-300#C4B5FD
- violet-300#C4B4FF
- v3 blue-300#93C5FD
- blue-300#8EC5FF
- lightsteelblue#B0C4DE
- v3 purple-300#D8B4FE
- lightskyblue#87CEFA
Lighter and darker, same hue and chroma
- #B8C7FF · oklch(0.845 0.104 274.7) · ΔL +0.06
- #93A1E8 · oklch(0.725 0.104 274.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?