OKLCH to HEX: #A5B4FC
Also known as: Tailwind v3 indigo-300
Result
oklch(0.78530 0.10414 274.713) → #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
oklch(0.78530 0.10414 274.713)
2. OKLCH → Oklab
a = C·cos H = 0.00856 b = C·sin H = -0.10379
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.766293 m′ = L − 0.1056·a − 0.0639·b = 0.791024 s′ = L − 0.0895·a − 1.2915·b = 0.918575
4. cube
l = 0.766293³ = 0.449972 m = 0.791024³ = 0.494959 s = 0.918575³ = 0.775075
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.376257 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.456413 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.973478
6. linear → sRGB, × 255
R = 0.64706 × 255 = 165.00 → 165 G = 0.70588 × 255 = 180.00 → 180 B = 0.98825 × 255 = 252.00 → 252
7. 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?