Skip to content

#fffaa2

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

RGB
255, 250, 162
HSL
57°, 100%, 82%
CMYK
0, 2, 37, 0
Luminance
0.9224

Every format

HEX#fffaa2
RGBrgb(255, 250, 162)
HSLhsl(57, 100%, 82%)
CMYKcmyk(0%, 2%, 37%, 0%)
LABlab(96.9 -10.8 42.8)
LCHlch(96.9 44.2 104.2)
OKLCHoklch(0.970 0.109 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green98.0%
Blue63.5%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow36.5%
Key (black)0.0%

Color previews

#fffaa2 text on a black background

contrast 19.45:1

Card sample

#fffaa2 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffaa2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffaa2 in the Color Lab