Skip to content

#f9cc49

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

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

Every format

HEX#f9cc49
RGBrgb(249, 204, 73)
HSLhsl(45, 94%, 63%)
CMYKcmyk(0%, 18%, 71%, 2%)
LABlab(83.9 2.9 68.1)
LCHlch(83.9 68.1 87.6)
OKLCHoklch(0.862 0.151 89.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9cc49 on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#f9cc49 on black: 13.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green80.0%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta18.1%
Yellow70.7%
Key (black)2.4%

Color previews

#f9cc49 text on a black background

contrast 13.76:1

Card sample

#f9cc49 text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9cc49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9cc49 in the Color Lab