Skip to content

#ffcc33

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

RGB
255, 204, 51
HSL
45°, 100%, 60%
CMYK
0, 20, 80, 0
Luminance
0.6468

Every format

HEX#ffcc33
RGBrgb(255, 204, 51)
HSLhsl(45, 100%, 60%)
CMYKcmyk(0%, 20%, 80%, 0%)
LABlab(84.3 4.5 76.3)
LCHlch(84.3 76.5 86.6)
OKLCHoklch(0.867 0.165 88.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green80.0%
Blue20.0%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow80.0%
Key (black)0.0%

Color previews

#ffcc33 text on a black background

contrast 13.94:1

Card sample

#ffcc33 text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcc33

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcc33 in the Color Lab