Skip to content

#f9ffb3

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

RGB
249, 255, 179
HSL
65°, 100%, 85%
CMYK
2, 0, 30, 0
Luminance
0.9491

Every format

HEX#f9ffb3
RGBrgb(249, 255, 179)
HSLhsl(65, 100%, 85%)
CMYKcmyk(2%, 0%, 30%, 0%)
LABlab(98.0 -13.5 35.8)
LCHlch(98.0 38.2 110.7)
OKLCHoklch(0.978 0.096 111.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.6%
Green100.0%
Blue70.2%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow29.8%
Key (black)0.0%

Color previews

#f9ffb3 text on a black background

contrast 19.98:1

Card sample

#f9ffb3 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9ffb3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9ffb3 in the Color Lab