Skip to content

#ffecb2

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

RGB
255, 236, 178
HSL
45°, 100%, 85%
CMYK
0, 8, 30, 0
Luminance
0.8447

Every format

HEX#ffecb2
RGBrgb(255, 236, 178)
HSLhsl(45, 100%, 85%)
CMYKcmyk(0%, 8%, 30%, 0%)
LABlab(93.7 -2.0 30.5)
LCHlch(93.7 30.6 93.7)
OKLCHoklch(0.945 0.077 92.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffecb2 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#ffecb2 on black: 17.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.5%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow30.2%
Key (black)0.0%

Color previews

#ffecb2 text on a black background

contrast 17.89:1

Card sample

#ffecb2 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffecb2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffecb2 in the Color Lab