Skip to content

#fffc9b

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

RGB
255, 252, 155
HSL
58°, 100%, 80%
CMYK
0, 1, 39, 0
Luminance
0.9325

Every format

HEX#fffc9b
RGBrgb(255, 252, 155)
HSLhsl(58, 100%, 80%)
CMYKcmyk(0%, 1%, 39%, 0%)
LABlab(97.3 -12.6 46.8)
LCHlch(97.3 48.4 105.0)
OKLCHoklch(0.973 0.119 106.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffc9b on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#fffc9b on black: 19.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green98.8%
Blue60.8%

CMYK percentages

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

Color previews

#fffc9b text on a black background

contrast 19.65:1

Card sample

#fffc9b text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffc9b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffc9b in the Color Lab