Skip to content

#ecf8f2

a pale, vivid green · cool · closest name: white

RGB
236, 248, 242
HSL
150°, 46%, 95%
CMYK
5, 0, 2, 3
Luminance
0.9138

Every format

HEX#ecf8f2
RGBrgb(236, 248, 242)
HSLhsl(150, 46%, 95%)
CMYKcmyk(5%, 0%, 2%, 3%)
LABlab(96.6 -5.0 1.5)
LCHlch(96.6 5.2 163.3)
OKLCHoklch(0.969 0.015 164.7)

Copy-ready code

/* CSS */
color: #ecf8f2;
background-color: #ecf8f2;
/* Tailwind (arbitrary) */
class="text-[#ecf8f2] bg-[#ecf8f2]"
/* SCSS */
$brand: #ecf8f2;
/* SwiftUI */
Color(red: 0.925, green: 0.973, blue: 0.949)
/* Android */
Color.parseColor("#ecf8f2")

Accessibility — WCAG contrast

Aa
#ecf8f2 on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#ecf8f2 on black: 19.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green97.3%
Blue94.9%

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow2.4%
Key (black)2.7%

Color previews

#ecf8f2 text on a black background

contrast 19.28:1

Card sample

#ecf8f2 text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ecf8f2;
Background color
Panel with #ecf8f2 background
background-color: #ecf8f2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ecf8f2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(236, 248, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 248, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecf8f2;
background: linear-gradient(135deg, #ecf8f2, #ECF6F8);

Monochromatic scale

Palettes built from #ecf8f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecf8f2 in the Color Lab