Skip to content

#faffb2

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

RGB
250, 255, 178
HSL
64°, 100%, 85%
CMYK
2, 0, 30, 0
Luminance
0.9506

Every format

HEX#faffb2
RGBrgb(250, 255, 178)
HSLhsl(64, 100%, 85%)
CMYKcmyk(2%, 0%, 30%, 0%)
LABlab(98.1 -13.3 36.3)
LCHlch(98.1 38.7 110.1)
OKLCHoklch(0.979 0.097 111.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#faffb2 on white: 1.05:1
AA ✗ fail · AA-large · AAA
Aa
#faffb2 on black: 20.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green100.0%
Blue69.8%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow30.2%
Key (black)0.0%

Color previews

#faffb2 text on a black background

contrast 20.01:1

Card sample

#faffb2 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #faffb2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #faffb2 in the Color Lab