Skip to content

#f9f8af

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

RGB
249, 248, 175
HSL
59°, 86%, 83%
CMYK
0, 0, 30, 2
Luminance
0.9037

Every format

HEX#f9f8af
RGBrgb(249, 248, 175)
HSLhsl(59, 86%, 83%)
CMYKcmyk(0%, 0%, 30%, 2%)
LABlab(96.2 -10.6 35.3)
LCHlch(96.2 36.8 106.7)
OKLCHoklch(0.963 0.092 107.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.6%
Green97.3%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow29.7%
Key (black)2.4%

Color previews

#f9f8af text on a black background

contrast 19.07:1

Card sample

#f9f8af text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9f8af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9f8af in the Color Lab