Skip to content

#ecf0b3

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

RGB
236, 240, 179
HSL
64°, 67%, 82%
CMYK
2, 0, 25, 6
Luminance
0.8341

Every format

HEX#ecf0b3
RGBrgb(236, 240, 179)
HSLhsl(64, 67%, 82%)
CMYKcmyk(2%, 0%, 25%, 6%)
LABlab(93.2 -10.9 29.1)
LCHlch(93.2 31.1 110.5)
OKLCHoklch(0.937 0.079 110.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecf0b3 on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#ecf0b3 on black: 17.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green94.1%
Blue70.2%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow25.4%
Key (black)5.9%

Color previews

#ecf0b3 text on a black background

contrast 17.68:1

Card sample

#ecf0b3 text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecf0b3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecf0b3 in the Color Lab