Skip to content

#f9f2af

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

RGB
249, 242, 175
HSL
54°, 86%, 83%
CMYK
0, 3, 30, 2
Luminance
0.8674

Every format

HEX#f9f2af
RGBrgb(249, 242, 175)
HSLhsl(54, 86%, 83%)
CMYKcmyk(0%, 3%, 30%, 2%)
LABlab(94.6 -7.6 33.3)
LCHlch(94.6 34.1 102.9)
OKLCHoklch(0.951 0.085 102.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9f2af on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#f9f2af on black: 18.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green94.9%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta2.8%
Yellow29.7%
Key (black)2.4%

Color previews

#f9f2af text on a black background

contrast 18.35:1

Card sample

#f9f2af text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9f2af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9f2af in the Color Lab