OKLCH to HEX: #00A6F4
Also known as: Tailwind sky-500
Result
oklch(0.69203 0.15955 240.379) → #00A6F4
Values are shown at full precision, so converting back gives exactly #00a6f4. 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.69203 0.15955 240.379)
2. OKLCH → Oklab
a = C·cos H = -0.07886 b = C·sin H = -0.13870
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.630843 m′ = L − 0.1056·a − 0.0639·b = 0.709211 s′ = L − 0.0895·a − 1.2915·b = 0.878214
4. cube
l = 0.630843³ = 0.251052 m = 0.709211³ = 0.356719 s = 0.878214³ = 0.677332
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = -0.000004 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.381319 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.904646
6. linear → sRGB, × 255
R = 0.00000 × 255 = 0.00 → 0 G = 0.65098 × 255 = 166.00 → 166 B = 0.95686 × 255 = 244.00 → 244
7. RGB → HEX
#00A6F4
All formats
- HEX
- #00a6f4
- RGB
- rgb(0 166 244)
- RGB (legacy)
- rgb(0, 166, 244)
- HSL
- hsl(199.18 100.00% 47.84%) → hsl(199 100% 48%)
- HWB
- hwb(199 0% 4%)
- OKLCH
- oklch(0.692 0.160 240.4) · oklch(69.2% 0.160 240.4)
- OKLab
- oklab(0.692 -0.079 -0.139)
- Lab (D50)
- lab(64.02 -15.26 -49.83)
- LCH (D50)
- lch(64.02 52.12 252.97)
- Display P3
- color(display-p3 0.2886 0.6411 0.9316)
- Linear sRGB
- color(srgb-linear 0.0000 0.3813 0.9047)
Gamut: sRGB and Display P3
#00A6F4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.160 and Display P3 reaches 0.194; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #00a6f4;
color: rgb(0 166 244);
color: hsl(199 100% 48%);
color: oklch(0.692 0.160 240.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.692 0.160 240.4);
}
/* arbitrary values */
class="text-[#00a6f4] bg-[oklch(0.692_0.160_240.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2886 0.6411 0.9316); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #00a6f4 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 sky-500#0EA5E9
- blue-400#51A2FF
- v3 blue-400#60A5FA
- sky-400#00BCFF
- cornflowerblue#6495ED
- dodgerblue#1E90FF
- v3 sky-400#38BDF8
- deepskyblue#00BFFF
Lighter and darker, same hue and chroma
- #30B9FF · oklch(0.752 0.160 240.4) · ΔL +0.06
- #0093E0 · oklch(0.632 0.160 240.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?