Skip to content

#fef0af

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

RGB
254, 240, 175
HSL
49°, 98%, 84%
CMYK
0, 6, 31, 0
Luminance
0.8649

Every format

HEX#fef0af
RGBrgb(254, 240, 175)
HSLhsl(49, 98%, 84%)
CMYKcmyk(0%, 6%, 31%, 0%)
LABlab(94.5 -4.8 33.2)
LCHlch(94.5 33.5 98.1)
OKLCHoklch(0.951 0.084 97.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef0af on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#fef0af on black: 18.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green94.1%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow31.1%
Key (black)0.4%

Color previews

#fef0af text on a black background

contrast 18.30:1

Card sample

#fef0af text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef0af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef0af in the Color Lab