Skip to content

#f9cc21

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

RGB
249, 204, 33
HSL
48°, 95%, 55%
CMYK
0, 18, 87, 2
Luminance
0.6344

Every format

HEX#f9cc21
RGBrgb(249, 204, 33)
HSLhsl(48, 95%, 55%)
CMYKcmyk(0%, 18%, 87%, 2%)
LABlab(83.7 1.5 80.2)
LCHlch(83.7 80.2 88.9)
OKLCHoklch(0.860 0.170 92.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.6%
Green80.0%
Blue12.9%

CMYK percentages

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

Color previews

#f9cc21 text on a black background

contrast 13.69:1

Card sample

#f9cc21 text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9cc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9cc21 in the Color Lab