Skip to content

#f9cc39

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

RGB
249, 204, 57
HSL
46°, 94%, 60%
CMYK
0, 18, 77, 2
Luminance
0.6362

Every format

HEX#f9cc39
RGBrgb(249, 204, 57)
HSLhsl(46, 94%, 60%)
CMYKcmyk(0%, 18%, 77%, 2%)
LABlab(83.8 2.2 73.8)
LCHlch(83.8 73.8 88.3)
OKLCHoklch(0.861 0.161 90.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.6%
Green80.0%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta18.1%
Yellow77.1%
Key (black)2.4%

Color previews

#f9cc39 text on a black background

contrast 13.72:1

Card sample

#f9cc39 text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f9cc39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9cc39 in the Color Lab