Skip to content

#f9cd49

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

RGB
249, 205, 73
HSL
45°, 94%, 63%
CMYK
0, 18, 71, 2
Luminance
0.6428

Every format

HEX#f9cd49
RGBrgb(249, 205, 73)
HSLhsl(45, 94%, 63%)
CMYKcmyk(0%, 18%, 71%, 2%)
LABlab(84.1 2.3 68.3)
LCHlch(84.1 68.4 88.0)
OKLCHoklch(0.864 0.152 90.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9cd49 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#f9cd49 on black: 13.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green80.4%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta17.7%
Yellow70.7%
Key (black)2.4%

Color previews

#f9cd49 text on a black background

contrast 13.86:1

Card sample

#f9cd49 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9cd49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9cd49 in the Color Lab