Skip to content

#cacc21

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

RGB
202, 204, 33
HSL
61°, 72%, 47%
CMYK
1, 0, 84, 20
Luminance
0.5585

Every format

HEX#cacc21
RGBrgb(202, 204, 33)
HSLhsl(61, 72%, 47%)
CMYKcmyk(1%, 0%, 84%, 20%)
LABlab(79.5 -18.6 75.1)
LCHlch(79.5 77.4 103.9)
OKLCHoklch(0.817 0.172 110.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cacc21 on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#cacc21 on black: 12.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green80.0%
Blue12.9%

CMYK percentages

Cyan1.0%
Magenta0.0%
Yellow83.8%
Key (black)20.0%

Color previews

#cacc21 text on a black background

contrast 12.17:1

Card sample

#cacc21 text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cacc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cacc21 in the Color Lab