Skip to content

#f0fbab

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

RGB
240, 251, 171
HSL
68°, 91%, 83%
CMYK
4, 0, 32, 2
Luminance
0.9046

Every format

HEX#f0fbab
RGBrgb(240, 251, 171)
HSLhsl(68, 91%, 83%)
CMYKcmyk(4%, 0%, 32%, 2%)
LABlab(96.2 -15.9 37.2)
LCHlch(96.2 40.5 113.1)
OKLCHoklch(0.962 0.102 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0fbab on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#f0fbab on black: 19.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green98.4%
Blue67.1%

CMYK percentages

Cyan4.4%
Magenta0.0%
Yellow31.9%
Key (black)1.6%

Color previews

#f0fbab text on a black background

contrast 19.09:1

Card sample

#f0fbab text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fbab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fbab in the Color Lab