Skip to content

#fffcaf

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

RGB
255, 252, 175
HSL
58°, 100%, 84%
CMYK
0, 1, 31, 0
Luminance
0.9398

Every format

HEX#fffcaf
RGBrgb(255, 252, 175)
HSLhsl(58, 100%, 84%)
CMYKcmyk(0%, 1%, 31%, 0%)
LABlab(97.6 -10.3 37.3)
LCHlch(97.6 38.7 105.5)
OKLCHoklch(0.976 0.097 106.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green98.8%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow31.4%
Key (black)0.0%

Color previews

#fffcaf text on a black background

contrast 19.80:1

Card sample

#fffcaf text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffcaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffcaf in the Color Lab