Skip to content

#ffcc39

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

RGB
255, 204, 57
HSL
45°, 100%, 61%
CMYK
0, 20, 78, 0
Luminance
0.6474

Every format

HEX#ffcc39
RGBrgb(255, 204, 57)
HSLhsl(45, 100%, 61%)
CMYKcmyk(0%, 20%, 78%, 0%)
LABlab(84.3 4.7 74.5)
LCHlch(84.3 74.6 86.4)
OKLCHoklch(0.867 0.162 88.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcc39 on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#ffcc39 on black: 13.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green80.0%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow77.6%
Key (black)0.0%

Color previews

#ffcc39 text on a black background

contrast 13.95:1

Card sample

#ffcc39 text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcc39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcc39 in the Color Lab