Skip to content

#fefcab

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

RGB
254, 252, 171
HSL
59°, 98%, 83%
CMYK
0, 1, 33, 0
Luminance
0.9363

Every format

HEX#fefcab
RGBrgb(254, 252, 171)
HSLhsl(59, 98%, 83%)
CMYKcmyk(0%, 1%, 33%, 0%)
LABlab(97.5 -11.2 39.1)
LCHlch(97.5 40.7 105.9)
OKLCHoklch(0.974 0.101 106.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green98.8%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow32.7%
Key (black)0.4%

Color previews

#fefcab text on a black background

contrast 19.73:1

Card sample

#fefcab text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefcab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefcab in the Color Lab