HEX to RGB: #00A6F4

Also known as: Tailwind sky-500

Result

#00A6F4 → rgb(0 166 244)

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. 1. HEX → pairs

    #00A6F4 → 00 | A6 | F4
  2. 2. base 16 → base 10

    R = 00₁₆ = 0×16 + 0 = 0
    G = A6₁₆ = 10×16 + 6 = 166
    B = F4₁₆ = 15×16 + 4 = 244
  3. 3. RGB

    rgb(0 166 244)

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).

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

All converters →

Guides: What is OKLCH?