RGB to HEX: #00A6F4
Also known as: Tailwind sky-500
Result
rgb(0 166 244) → #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. base 10 → base 16
R = 0 = 0×16 + 0 → 00 G = 166 = 10×16 + 6 → A6 B = 244 = 15×16 + 4 → F4
2. pairs → HEX
00 A6 F4 → #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?