Skip to content

#fefdb2

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

RGB
254, 253, 178
HSL
59°, 97%, 85%
CMYK
0, 0, 30, 0
Luminance
0.9454

Every format

HEX#fefdb2
RGBrgb(254, 253, 178)
HSLhsl(59, 97%, 85%)
CMYKcmyk(0%, 0%, 30%, 0%)
LABlab(97.8 -10.8 36.1)
LCHlch(97.8 37.7 106.7)
OKLCHoklch(0.978 0.094 107.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefdb2 on white: 1.05:1
AA ✗ fail · AA-large · AAA
Aa
#fefdb2 on black: 19.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green99.2%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow29.9%
Key (black)0.4%

Color previews

#fefdb2 text on a black background

contrast 19.91:1

Card sample

#fefdb2 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefdb2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefdb2 in the Color Lab