HEX to RGB: #F0FDFA

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

Result

#F0FDFA → rgb(240 253 250)

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

    #F0FDFA → F0 | FD | FA
  2. 2. base 16 → base 10

    R = F0₁₆ = 15×16 + 0 = 240
    G = FD₁₆ = 15×16 + 13 = 253
    B = FA₁₆ = 15×16 + 10 = 250
  3. 3. RGB

    rgb(240 253 250)

All formats

HEX
#f0fdfa
RGB
rgb(240 253 250)
RGB (legacy)
rgb(240, 253, 250)
HSL
hsl(166.15 76.47% 96.67%) → hsl(166 76% 97%)
HWB
hwb(166 94% 1%)
OKLCH
oklch(0.984 0.014 180.7) · oklch(98.4% 0.014 180.7)
OKLab
oklab(0.984 -0.014 0.000)
Lab (D50)
lab(98.27 -4.82 -0.11)
LCH (D50)
lch(98.27 4.82 181.35)
Display P3
color(display-p3 0.9505 0.9905 0.9806)
Linear sRGB
color(srgb-linear 0.8714 0.9823 0.9560)

Gamut: sRGB and Display P3

#F0FDFA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.022 and Display P3 reaches 0.026; this color uses 63% of the sRGB chroma available.

CSS snippets

.element {
  color: #f0fdfa;
  color: rgb(240 253 250);
  color: hsl(166 76% 97%);
  color: oklch(0.984 0.014 180.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.984 0.014 180.7);
}
/* arbitrary values */
class="text-[#f0fdfa] bg-[oklch(0.984_0.014_180.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9505 0.9905 0.9806); }
}

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

  • #F5FFFF · oklch(1.000 0.014 180.7) · ΔL +0.06
  • #DCE9E6 · oklch(0.924 0.014 180.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?