Skip to content

#f0fcab

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

RGB
240, 252, 171
HSL
69°, 93%, 83%
CMYK
5, 0, 32, 1
Luminance
0.9109

Every format

HEX#f0fcab
RGBrgb(240, 252, 171)
HSLhsl(69, 93%, 83%)
CMYKcmyk(5%, 0%, 32%, 1%)
LABlab(96.5 -16.4 37.5)
LCHlch(96.5 41.0 113.6)
OKLCHoklch(0.964 0.103 115.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0fcab on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#f0fcab on black: 19.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green98.8%
Blue67.1%

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow32.1%
Key (black)1.2%

Color previews

#f0fcab text on a black background

contrast 19.22:1

Card sample

#f0fcab text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fcab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fcab in the Color Lab