Skip to content

#cc9922

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

RGB
204, 153, 34
HSL
42°, 71%, 47%
CMYK
0, 25, 83, 20
Luminance
0.3574

Every format

HEX#cc9922
RGBrgb(204, 153, 34)
HSLhsl(42, 71%, 47%)
CMYKcmyk(0%, 25%, 83%, 20%)
LABlab(66.3 8.9 63.8)
LCHlch(66.3 64.5 82.1)
OKLCHoklch(0.713 0.138 82.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc9922 on white: 2.58:1
AA ✗ fail · AA-large · AAA
Aa
#cc9922 on black: 8.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green60.0%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta25.0%
Yellow83.3%
Key (black)20.0%

Color previews

#cc9922 text on a black background

contrast 8.15:1

Card sample

#cc9922 text on a white background

contrast 2.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc9922

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc9922 in the Color Lab