OKLCH to HEX: #C7D2FE
Also known as: Tailwind v3 indigo-200
Result
oklch(0.86986 0.06222 274.039) → #C7D2FE
Values are shown at full precision, so converting back gives exactly #c7d2fe. 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
oklch(0.86986 0.06222 274.039)
2. OKLCH → Oklab
a = C·cos H = 0.00438 b = C·sin H = -0.06207
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.858203 m′ = L − 0.1056·a − 0.0639·b = 0.873361 s′ = L − 0.0895·a − 1.2915·b = 0.949624
4. cube
l = 0.858203³ = 0.632077 m = 0.873361³ = 0.666163 s = 0.949624³ = 0.856359
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.571132 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.644482 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.991087
6. linear → sRGB, × 255
R = 0.78040 × 255 = 199.00 → 199 G = 0.82353 × 255 = 210.00 → 210 B = 0.99607 × 255 = 254.00 → 254
7. RGB → HEX
#C7D2FE
All formats
- HEX
- #c7d2fe
- RGB
- rgb(199 210 254)
- RGB (legacy)
- rgb(199, 210, 254)
- HSL
- hsl(228.00 96.49% 88.82%) → hsl(228 96% 89%)
- HWB
- hwb(228 78% 0%)
- OKLCH
- oklch(0.870 0.062 274.0) · oklch(87.0% 0.062 274.0)
- OKLab
- oklab(0.870 0.004 -0.062)
- Lab (D50)
- lab(84.44 3.00 -22.97)
- LCH (D50)
- lch(84.44 23.16 277.43)
- Display P3
- color(display-p3 0.7883 0.8221 0.9817)
- Linear sRGB
- color(srgb-linear 0.5711 0.6445 0.9911)
Gamut: sRGB and Display P3
#C7D2FE 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 98% of the sRGB chroma available.
CSS snippets
.element {
color: #c7d2fe;
color: rgb(199 210 254);
color: hsl(228 96% 89%);
color: oklch(0.870 0.062 274.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.870 0.062 274.0);
}
/* arbitrary values */
class="text-[#c7d2fe] bg-[oklch(0.870_0.062_274.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7883 0.8221 0.9817); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c7d2fe calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- indigo-200#C6D2FF
- 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
- #DAE6FF · oklch(0.930 0.062 274.0) · ΔL +0.06
- #B4BFEA · oklch(0.810 0.062 274.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?