HEX to OKLCH: #00A6F4
Also known as: Tailwind sky-500
Result
#00A6F4 → oklch(0.692 0.160 240.4)
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. sRGB → linear
R: 0/255 = 0.00000 → 0.000000 (÷ 12.92) G: 166/255 = 0.65098 → 0.381326 (((x + 0.055) / 1.055)^2.4) B: 244/255 = 0.95686 → 0.904661 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.251059 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.356726 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.677344
3. cube root
l′ = ∛0.251059 = 0.630849 m′ = ∛0.356726 = 0.709216 s′ = ∛0.677344 = 0.878220
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.69203 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.07886 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.13870
5. Oklab → OKLCH
C = √(a² + b²) = 0.15955 H = atan2(b, a) = 240.379° L = 0.69203
6. OKLCH
oklch(0.69203 0.15955 240.379) rounded: oklch(0.692 0.160 240.4)
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?