RGB to HEX: #F0FDF4

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

Result

rgb(240 253 244) → #F0FDF4

Values are shown at full precision, so converting back gives exactly #f0fdf4. 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. base 10 → base 16

    R = 240 = 15×16 + 0 → F0
    G = 253 = 15×16 + 13 → FD
    B = 244 = 15×16 + 4 → F4
  2. 2. pairs → HEX

    F0 FD F4 → #F0FDF4

All formats

HEX
#f0fdf4
RGB
rgb(240 253 244)
RGB (legacy)
rgb(240, 253, 244)
HSL
hsl(138.46 76.47% 96.67%) → hsl(138 76% 97%)
HWB
hwb(138 94% 1%)
OKLCH
oklch(0.982 0.018 155.8) · oklch(98.2% 0.018 155.8)
OKLab
oklab(0.982 -0.016 0.007)
Lab (D50)
lab(98.15 -5.62 2.77)
LCH (D50)
lch(98.15 6.26 153.78)
Display P3
color(display-p3 0.9505 0.9905 0.9592)
Linear sRGB
color(srgb-linear 0.8714 0.9823 0.9047)

Gamut: sRGB and Display P3

#F0FDF4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.027 and Display P3 reaches 0.030; this color uses 67% of the sRGB chroma available.

CSS snippets

.element {
  color: #f0fdf4;
  color: rgb(240 253 244);
  color: hsl(138 76% 97%);
  color: oklch(0.982 0.018 155.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.982 0.018 155.8);
}
/* arbitrary values */
class="text-[#f0fdf4] bg-[oklch(0.982_0.018_155.8)]"

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

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

  • #F6FFFA · oklch(1.000 0.018 155.8) · ΔL +0.06
  • #DCE9E0 · oklch(0.922 0.018 155.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?