Skip to content

#ffecc1

a pale, electric yellow · warm · closest name: beige

RGB
255, 236, 193
HSL
42°, 100%, 88%
CMYK
0, 8, 24, 0
Luminance
0.8510

Every format

HEX#ffecc1
RGBrgb(255, 236, 193)
HSLhsl(42, 100%, 88%)
CMYKcmyk(0%, 8%, 24%, 0%)
LABlab(93.9 -0.1 23.2)
LCHlch(93.9 23.2 90.1)
OKLCHoklch(0.948 0.059 87.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.5%
Blue75.7%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow24.3%
Key (black)0.0%

Color previews

#ffecc1 text on a black background

contrast 18.02:1

Card sample

#ffecc1 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffecc1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffecc1 in the Color Lab