Skip to content

#fcf4af

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

RGB
252, 244, 175
HSL
54°, 93%, 84%
CMYK
0, 3, 31, 1
Luminance
0.8849

Every format

HEX#fcf4af
RGBrgb(252, 244, 175)
HSLhsl(54, 93%, 84%)
CMYKcmyk(0%, 3%, 31%, 1%)
LABlab(95.4 -7.5 34.3)
LCHlch(95.4 35.1 102.3)
OKLCHoklch(0.957 0.088 102.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcf4af on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fcf4af on black: 18.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green95.7%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta3.2%
Yellow30.6%
Key (black)1.2%

Color previews

#fcf4af text on a black background

contrast 18.70:1

Card sample

#fcf4af text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcf4af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcf4af in the Color Lab