Skip to content

#faff98

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

RGB
250, 255, 152
HSL
63°, 100%, 80%
CMYK
2, 0, 40, 0
Luminance
0.9411

Every format

HEX#faff98
RGBrgb(250, 255, 152)
HSLhsl(63, 100%, 80%)
CMYKcmyk(2%, 0%, 40%, 0%)
LABlab(97.7 -16.2 48.6)
LCHlch(97.7 51.2 108.5)
OKLCHoklch(0.974 0.126 110.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#faff98 on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#faff98 on black: 19.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green100.0%
Blue59.6%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow40.4%
Key (black)0.0%

Color previews

#faff98 text on a black background

contrast 19.82:1

Card sample

#faff98 text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #faff98

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #faff98 in the Color Lab