Skip to content

#f8fbab

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

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

Every format

HEX#f8fbab
RGBrgb(248, 251, 171)
HSLhsl(62, 91%, 83%)
CMYKcmyk(1%, 0%, 32%, 2%)
LABlab(96.8 -12.9 38.1)
LCHlch(96.8 40.2 108.7)
OKLCHoklch(0.968 0.101 110.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.3%
Green98.4%
Blue67.1%

CMYK percentages

Cyan1.2%
Magenta0.0%
Yellow31.9%
Key (black)1.6%

Color previews

#f8fbab text on a black background

contrast 19.38:1

Card sample

#f8fbab text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f8fbab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f8fbab in the Color Lab