Skip to content

#f2fdab

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

RGB
242, 253, 171
HSL
68°, 95%, 83%
CMYK
4, 0, 32, 1
Luminance
0.9207

Every format

HEX#f2fdab
RGBrgb(242, 253, 171)
HSLhsl(68, 95%, 83%)
CMYKcmyk(4%, 0%, 32%, 1%)
LABlab(96.8 -16.1 38.1)
LCHlch(96.8 41.4 112.9)
OKLCHoklch(0.967 0.104 114.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green99.2%
Blue67.1%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow32.4%
Key (black)0.8%

Color previews

#f2fdab text on a black background

contrast 19.41:1

Card sample

#f2fdab text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fdab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fdab in the Color Lab