Skip to content

#ecf4b2

a light, electric yellow · cool · closest name: khaki

RGB
236, 244, 178
HSL
67°, 75%, 83%
CMYK
3, 0, 27, 4
Luminance
0.8575

Every format

HEX#ecf4b2
RGBrgb(236, 244, 178)
HSLhsl(67, 75%, 83%)
CMYKcmyk(3%, 0%, 27%, 4%)
LABlab(94.2 -13.0 31.0)
LCHlch(94.2 33.6 112.8)
OKLCHoklch(0.945 0.085 113.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecf4b2 on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#ecf4b2 on black: 18.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green95.7%
Blue69.8%

CMYK percentages

Cyan3.3%
Magenta0.0%
Yellow27.0%
Key (black)4.3%

Color previews

#ecf4b2 text on a black background

contrast 18.15:1

Card sample

#ecf4b2 text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecf4b2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecf4b2 in the Color Lab