Skip to content

#ffecac

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

RGB
255, 236, 172
HSL
46°, 100%, 84%
CMYK
0, 8, 33, 0
Luminance
0.8423

Every format

HEX#ffecac
RGBrgb(255, 236, 172)
HSLhsl(46, 100%, 84%)
CMYKcmyk(0%, 8%, 33%, 0%)
LABlab(93.5 -2.7 33.4)
LCHlch(93.5 33.5 94.7)
OKLCHoklch(0.944 0.084 93.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffecac on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#ffecac on black: 17.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.5%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow32.5%
Key (black)0.0%

Color previews

#ffecac text on a black background

contrast 17.85:1

Card sample

#ffecac text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffecac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffecac in the Color Lab