Skip to content

#fefcaf

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

RGB
254, 252, 175
HSL
59°, 98%, 84%
CMYK
0, 1, 31, 0
Luminance
0.9379

Every format

HEX#fefcaf
RGBrgb(254, 252, 175)
HSLhsl(59, 98%, 84%)
CMYKcmyk(0%, 1%, 31%, 0%)
LABlab(97.5 -10.7 37.2)
LCHlch(97.5 38.7 106.0)
OKLCHoklch(0.975 0.097 106.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green98.8%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow31.1%
Key (black)0.4%

Color previews

#fefcaf text on a black background

contrast 19.76:1

Card sample

#fefcaf text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefcaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefcaf in the Color Lab