Skip to content

#fefd7f

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

RGB
254, 253, 127
HSL
60°, 98%, 75%
CMYK
0, 0, 50, 0
Luminance
0.9285

Every format

HEX#fefd7f
RGBrgb(254, 253, 127)
HSLhsl(60, 98%, 75%)
CMYKcmyk(0%, 0%, 50%, 0%)
LABlab(97.2 -16.0 59.7)
LCHlch(97.2 61.8 105.0)
OKLCHoklch(0.970 0.148 108.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefd7f on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#fefd7f on black: 19.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green99.2%
Blue49.8%

CMYK percentages

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

Color previews

#fefd7f text on a black background

contrast 19.57:1

Card sample

#fefd7f text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefd7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefd7f in the Color Lab