Skip to content

#f9fbab

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

RGB
249, 251, 171
HSL
62°, 91%, 83%
CMYK
1, 0, 32, 2
Luminance
0.9207

Every format

HEX#f9fbab
RGBrgb(249, 251, 171)
HSLhsl(62, 91%, 83%)
CMYKcmyk(1%, 0%, 32%, 2%)
LABlab(96.8 -12.6 38.2)
LCHlch(96.8 40.2 108.2)
OKLCHoklch(0.968 0.101 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9fbab on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#f9fbab on black: 19.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green98.4%
Blue67.1%

CMYK percentages

Cyan0.8%
Magenta0.0%
Yellow31.9%
Key (black)1.6%

Color previews

#f9fbab text on a black background

contrast 19.41:1

Card sample

#f9fbab text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9fbab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9fbab in the Color Lab