Skip to content

#ccc821

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

RGB
204, 200, 33
HSL
59°, 72%, 47%
CMYK
0, 2, 84, 20
Luminance
0.5426

Every format

HEX#ccc821
RGBrgb(204, 200, 33)
HSLhsl(59, 72%, 47%)
CMYKcmyk(0%, 2%, 84%, 20%)
LABlab(78.6 -15.7 74.4)
LCHlch(78.6 76.1 101.9)
OKLCHoklch(0.810 0.168 108.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc821 on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#ccc821 on black: 11.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow83.8%
Key (black)20.0%

Color previews

#ccc821 text on a black background

contrast 11.85:1

Card sample

#ccc821 text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc821 in the Color Lab