Skip to content

#fefd9f

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

RGB
254, 253, 159
HSL
59°, 98%, 81%
CMYK
0, 0, 37, 0
Luminance
0.9382

Every format

HEX#fefd9f
RGBrgb(254, 253, 159)
HSLhsl(59, 98%, 81%)
CMYKcmyk(0%, 0%, 37%, 0%)
LABlab(97.6 -13.0 45.1)
LCHlch(97.6 47.0 106.1)
OKLCHoklch(0.974 0.116 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefd9f on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#fefd9f on black: 19.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green99.2%
Blue62.4%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow37.4%
Key (black)0.4%

Color previews

#fefd9f text on a black background

contrast 19.76:1

Card sample

#fefd9f text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefd9f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefd9f in the Color Lab