HEX to OKLCH: #A2F4FD

Also known as: Tailwind cyan-200

Result

#A2F4FD → oklch(0.918 0.081 204.6)

Values are shown at full precision, so converting back gives exactly #a2f4fd. 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. sRGB → linear

    R: 162/255 = 0.63529 → 0.361307  (((x + 0.055) / 1.055)^2.4)
    G: 244/255 = 0.95686 → 0.904661  (((x + 0.055) / 1.055)^2.4)
    B: 253/255 = 0.99216 → 0.982251  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.684670
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.797855
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.905561
  3. 3. cube root

    l′ = ∛0.684670 = 0.881375
    m′ = ∛0.797855 = 0.927487
    s′ = ∛0.905561 = 0.967474
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.91762
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.07319
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.03353
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.08051
    H = atan2(b, a) = 204.613°
    L = 0.91762
  6. 6. OKLCH

    oklch(0.91762 0.08051 204.613)
    rounded: oklch(0.918 0.081 204.6)

All formats

HEX
#a2f4fd
RGB
rgb(162 244 253)
RGB (legacy)
rgb(162, 244, 253)
HSL
hsl(185.93 95.79% 81.37%) → hsl(186 96% 81%)
HWB
hwb(186 64% 1%)
OKLCH
oklch(0.918 0.081 204.6) · oklch(91.8% 0.081 204.6)
OKLab
oklab(0.918 -0.073 -0.034)
Lab (D50)
lab(91.17 -24.30 -12.71)
LCH (D50)
lch(91.17 27.42 207.61)
Display P3
color(display-p3 0.7068 0.9484 0.9849)
Linear sRGB
color(srgb-linear 0.3613 0.9047 0.9823)

Gamut: sRGB and Display P3

#A2F4FD is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.087 and Display P3 reaches 0.094; this color uses 93% of the sRGB chroma available.

CSS snippets

.element {
  color: #a2f4fd;
  color: rgb(162 244 253);
  color: hsl(186 96% 81%);
  color: oklch(0.918 0.081 204.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.918 0.081 204.6);
}
/* arbitrary values */
class="text-[#a2f4fd] bg-[oklch(0.918_0.081_204.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7068 0.9484 0.9849); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a2f4fd 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

  • #B6FFFF · oklch(0.978 0.081 204.6) · ΔL +0.06
  • #8EE0E9 · oklch(0.858 0.081 204.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?