Skip to content

#ffcc22

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

RGB
255, 204, 34
HSL
46°, 100%, 57%
CMYK
0, 20, 87, 0
Luminance
0.6456

Every format

HEX#ffcc22
RGBrgb(255, 204, 34)
HSLhsl(46, 100%, 57%)
CMYKcmyk(0%, 20%, 87%, 0%)
LABlab(84.3 4.1 80.7)
LCHlch(84.3 80.8 87.1)
OKLCHoklch(0.866 0.171 89.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green80.0%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta20.0%
Yellow86.7%
Key (black)0.0%

Color previews

#ffcc22 text on a black background

contrast 13.91:1

Card sample

#ffcc22 text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcc22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcc22 in the Color Lab