Skip to content

#f2faad

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

RGB
242, 250, 173
HSL
66°, 89%, 83%
CMYK
3, 0, 31, 2
Luminance
0.9027

Every format

HEX#f2faad
RGBrgb(242, 250, 173)
HSLhsl(66, 89%, 83%)
CMYKcmyk(3%, 0%, 31%, 2%)
LABlab(96.1 -14.4 36.1)
LCHlch(96.1 38.9 111.7)
OKLCHoklch(0.961 0.098 113.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green98.0%
Blue67.8%

CMYK percentages

Cyan3.2%
Magenta0.0%
Yellow30.8%
Key (black)2.0%

Color previews

#f2faad text on a black background

contrast 19.05:1

Card sample

#f2faad text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2faad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2faad in the Color Lab