OKLCH to HEX: #F0F9FF

Also known as: Tailwind sky-50, Tailwind v3 sky-50

Result

oklch(0.97711 0.01249 236.620) → #F0F9FF

Values are shown at full precision, so converting back gives exactly #f0f9ff. 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. input

    oklch(0.97711 0.01249 236.620)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00687
    b = C·sin H = -0.01043
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.972136
    m′ = L − 0.1056·a − 0.0639·b = 0.978501
    s′ = L − 0.0895·a − 1.2915·b = 0.991195
  4. 4. cube

    l = 0.972136³ = 0.918715
    m = 0.978501³ = 0.936881
    s = 0.991195³ = 0.973816
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.871353
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.947317
    B = −0.0042·l − 0.7034·m + 1.7076·s = 1.000028
  6. 6. linear → sRGB, × 255

    R = 0.94117 × 255 = 240.00 → 240
    G = 0.97648 × 255 = 249.00 → 249
    B = 1.00000 × 255 = 255.00 → 255
  7. 7. RGB → HEX

    #F0F9FF

All formats

HEX
#f0f9ff
RGB
rgb(240 249 255)
RGB (legacy)
rgb(240, 249, 255)
HSL
hsl(204.00 100.00% 97.06%) → hsl(204 100% 97%)
HWB
hwb(204 94% 0%)
OKLCH
oklch(0.977 0.012 236.6) · oklch(97.7% 0.012 236.6)
OKLab
oklab(0.977 -0.007 -0.010)
Lab (D50)
lab(97.37 -2.25 -3.97)
LCH (D50)
lch(97.37 4.56 240.48)
Display P3
color(display-p3 0.9476 0.9753 0.9974)
Linear sRGB
color(srgb-linear 0.8714 0.9473 1.0000)

Gamut: sRGB and Display P3

#F0F9FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.012 and Display P3 reaches 0.014; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #f0f9ff;
  color: rgb(240 249 255);
  color: hsl(204 100% 97%);
  color: oklch(0.977 0.012 236.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.977 0.012 236.6);
}
/* arbitrary values */
class="text-[#f0f9ff] bg-[oklch(0.977_0.012_236.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9476 0.9753 0.9974); }
}

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

  • #F8FFFF · oklch(1.000 0.012 236.6) · ΔL +0.06
  • #DCE5EB · oklch(0.917 0.012 236.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?