Skip to content

#ccaf21

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

RGB
204, 175, 33
HSL
50°, 72%, 47%
CMYK
0, 14, 84, 20
Luminance
0.4361

Every format

HEX#ccaf21
RGBrgb(204, 175, 33)
HSLhsl(50, 72%, 47%)
CMYKcmyk(0%, 14%, 84%, 20%)
LABlab(72.0 -2.9 68.9)
LCHlch(72.0 68.9 92.4)
OKLCHoklch(0.757 0.148 96.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaf21 on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#ccaf21 on black: 9.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue12.9%

CMYK percentages

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

Color previews

#ccaf21 text on a black background

contrast 9.72:1

Card sample

#ccaf21 text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf21 in the Color Lab