Skip to content

#f9df4a

a balanced, electric yellow · cool · closest name: gold

RGB
249, 223, 74
HSL
51°, 94%, 63%
CMYK
0, 10, 70, 2
Luminance
0.7341

Every format

HEX#f9df4a
RGBrgb(249, 223, 74)
HSLhsl(51, 94%, 63%)
CMYKcmyk(0%, 10%, 70%, 2%)
LABlab(88.6 -6.7 72.4)
LCHlch(88.6 72.8 95.3)
OKLCHoklch(0.900 0.163 99.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9df4a on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#f9df4a on black: 15.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green87.5%
Blue29.0%

CMYK percentages

Cyan0.0%
Magenta10.4%
Yellow70.3%
Key (black)2.4%

Color previews

#f9df4a text on a black background

contrast 15.68:1

Card sample

#f9df4a text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9df4a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9df4a in the Color Lab