Skip to content

#fffcb2

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

RGB
255, 252, 178
HSL
58°, 100%, 85%
CMYK
0, 1, 30, 0
Luminance
0.9410

Every format

HEX#fffcb2
RGBrgb(255, 252, 178)
HSLhsl(58, 100%, 85%)
CMYKcmyk(0%, 1%, 30%, 0%)
LABlab(97.7 -10.0 35.9)
LCHlch(97.7 37.3 105.5)
OKLCHoklch(0.976 0.093 106.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green98.8%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow30.2%
Key (black)0.0%

Color previews

#fffcb2 text on a black background

contrast 19.82:1

Card sample

#fffcb2 text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffcb2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffcb2 in the Color Lab