Skip to content

#cc9a21

a balanced, vivid yellow · warm · closest name: peru

RGB
204, 154, 33
HSL
43°, 72%, 47%
CMYK
0, 25, 84, 20
Luminance
0.3606

Every format

HEX#cc9a21
RGBrgb(204, 154, 33)
HSLhsl(43, 72%, 47%)
CMYKcmyk(0%, 25%, 84%, 20%)
LABlab(66.6 8.3 64.3)
LCHlch(66.6 64.9 82.6)
OKLCHoklch(0.715 0.138 83.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc9a21 on white: 2.56:1
AA ✗ fail · AA-large · AAA
Aa
#cc9a21 on black: 8.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green60.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta24.5%
Yellow83.8%
Key (black)20.0%

Color previews

#cc9a21 text on a black background

contrast 8.21:1

Card sample

#cc9a21 text on a white background

contrast 2.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc9a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc9a21 in the Color Lab