Skip to content

#ffecb0

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

RGB
255, 236, 176
HSL
46°, 100%, 85%
CMYK
0, 8, 31, 0
Luminance
0.8439

Every format

HEX#ffecb0
RGBrgb(255, 236, 176)
HSLhsl(46, 100%, 85%)
CMYKcmyk(0%, 8%, 31%, 0%)
LABlab(93.6 -2.2 31.5)
LCHlch(93.6 31.6 94.1)
OKLCHoklch(0.944 0.079 92.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#ffecb0 text on a black background

contrast 17.88:1

Card sample

#ffecb0 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffecb0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffecb0 in the Color Lab