Skip to content

#fffbab

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

RGB
255, 251, 171
HSL
57°, 100%, 84%
CMYK
0, 2, 33, 0
Luminance
0.9319

Every format

HEX#fffbab
RGBrgb(255, 251, 171)
HSLhsl(57, 100%, 84%)
CMYKcmyk(0%, 2%, 33%, 0%)
LABlab(97.3 -10.3 38.9)
LCHlch(97.3 40.2 104.8)
OKLCHoklch(0.973 0.100 105.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green98.4%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow32.9%
Key (black)0.0%

Color previews

#fffbab text on a black background

contrast 19.64:1

Card sample

#fffbab text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffbab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffbab in the Color Lab