Skip to content

#fcf2af

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

RGB
252, 242, 175
HSL
52°, 93%, 84%
CMYK
0, 4, 31, 1
Luminance
0.8729

Every format

HEX#fcf2af
RGBrgb(252, 242, 175)
HSLhsl(52, 93%, 84%)
CMYKcmyk(0%, 4%, 31%, 1%)
LABlab(94.9 -6.5 33.6)
LCHlch(94.9 34.2 100.9)
OKLCHoklch(0.954 0.086 100.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcf2af on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#fcf2af on black: 18.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green94.9%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta4.0%
Yellow30.6%
Key (black)1.2%

Color previews

#fcf2af text on a black background

contrast 18.46:1

Card sample

#fcf2af text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcf2af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcf2af in the Color Lab