Skip to content

#fffcb3

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

RGB
255, 252, 179
HSL
58°, 100%, 85%
CMYK
0, 1, 30, 0
Luminance
0.9414

Every format

HEX#fffcb3
RGBrgb(255, 252, 179)
HSLhsl(58, 100%, 85%)
CMYKcmyk(0%, 1%, 30%, 0%)
LABlab(97.7 -9.8 35.4)
LCHlch(97.7 36.8 105.5)
OKLCHoklch(0.977 0.092 106.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green98.8%
Blue70.2%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow29.8%
Key (black)0.0%

Color previews

#fffcb3 text on a black background

contrast 19.83:1

Card sample

#fffcb3 text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffcb3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffcb3 in the Color Lab