HSL to HEX: #C6D2FF
Also known as: Tailwind indigo-200
Result
hsl(227.37 100.00% 88.82%) → #C6D2FF
Values are shown at full precision, so converting back gives exactly #c6d2ff. 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 = 227.37°, S = 100.00%, L = 88.82%
2. C
C = (1 − |2L − 1|) × S = 0.22360
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.04707 (H / 60° = 3.7895, sector 3)
4. m
m = L − C / 2 = 0.77640
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.04707, 0.22360) R = round((0.00000 + 0.77640) × 255) = 198 G = round((0.04707 + 0.77640) × 255) = 210 B = round((0.22360 + 0.77640) × 255) = 255
6. RGB → HEX
#C6D2FF
All formats
- HEX
- #c6d2ff
- RGB
- rgb(198 210 255)
- RGB (legacy)
- rgb(198, 210, 255)
- HSL
- hsl(227.37 100.00% 88.82%) → hsl(227 100% 89%)
- HWB
- hwb(227 78% 0%)
- OKLCH
- oklch(0.870 0.064 273.3) · oklch(87.0% 0.064 273.3)
- OKLab
- oklab(0.870 0.004 -0.064)
- Lab (D50)
- lab(84.40 2.85 -23.57)
- LCH (D50)
- lch(84.40 23.74 276.88)
- Display P3
- color(display-p3 0.7851 0.8220 0.9853)
- Linear sRGB
- color(srgb-linear 0.5647 0.6445 1.0000)
Gamut: sRGB and Display P3
#C6D2FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.064 and Display P3 reaches 0.070; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #c6d2ff;
color: rgb(198 210 255);
color: hsl(227 100% 89%);
color: oklch(0.870 0.064 273.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.870 0.064 273.3);
}
/* arbitrary values */
class="text-[#c6d2ff] bg-[oklch(0.870_0.064_273.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7851 0.8220 0.9853); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c6d2ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 indigo-200#C7D2FE
- blue-200#BEDBFF
- v3 blue-200#BFDBFE
- violet-200#DDD6FF
- v3 violet-200#DDD6FE
- slate-300#CAD5E2
- v3 slate-300#CBD5E1
- purple-200#E9D4FF
Lighter and darker, same hue and chroma
- #D9E6FF · oklch(0.929 0.064 273.3) · ΔL +0.06
- #B3BFEB · oklch(0.810 0.064 273.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?