Skip to content

#ccad21

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

RGB
204, 173, 33
HSL
49°, 72%, 47%
CMYK
0, 15, 84, 20
Luminance
0.4283

Every format

HEX#ccad21
RGBrgb(204, 173, 33)
HSLhsl(49, 72%, 47%)
CMYKcmyk(0%, 15%, 84%, 20%)
LABlab(71.4 -1.8 68.4)
LCHlch(71.4 68.5 91.5)
OKLCHoklch(0.753 0.147 95.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccad21 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#ccad21 on black: 9.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta15.2%
Yellow83.8%
Key (black)20.0%

Color previews

#ccad21 text on a black background

contrast 9.57:1

Card sample

#ccad21 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccad21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccad21 in the Color Lab