Skip to content

#f9df5c

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

RGB
249, 223, 92
HSL
50°, 93%, 67%
CMYK
0, 10, 63, 2
Luminance
0.7369

Every format

HEX#f9df5c
RGBrgb(249, 223, 92)
HSLhsl(50, 93%, 67%)
CMYKcmyk(0%, 10%, 63%, 2%)
LABlab(88.8 -5.8 65.5)
LCHlch(88.8 65.7 95.0)
OKLCHoklch(0.901 0.150 98.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9df5c on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#f9df5c on black: 15.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green87.5%
Blue36.1%

CMYK percentages

Cyan0.0%
Magenta10.4%
Yellow63.1%
Key (black)2.4%

Color previews

#f9df5c text on a black background

contrast 15.74:1

Card sample

#f9df5c text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9df5c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9df5c in the Color Lab