Skip to content

#fffb9d

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

RGB
255, 251, 157
HSL
58°, 100%, 81%
CMYK
0, 2, 38, 0
Luminance
0.9269

Every format

HEX#fffb9d
RGBrgb(255, 251, 157)
HSLhsl(58, 100%, 81%)
CMYKcmyk(0%, 2%, 38%, 0%)
LABlab(97.1 -11.9 45.5)
LCHlch(97.1 47.0 104.6)
OKLCHoklch(0.971 0.116 106.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green98.4%
Blue61.6%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow38.4%
Key (black)0.0%

Color previews

#fffb9d text on a black background

contrast 19.54:1

Card sample

#fffb9d text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffb9d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffb9d in the Color Lab