Skip to content

#ccac00

a dark, electric yellow · cool · closest name: gold

RGB
204, 172, 0
HSL
51°, 100%, 40%
CMYK
0, 16, 100, 20
Luminance
0.4234

Every format

HEX#ccac00
RGBrgb(204, 172, 0)
HSLhsl(51, 100%, 40%)
CMYKcmyk(0%, 16%, 100%, 20%)
LABlab(71.1 -1.9 73.7)
LCHlch(71.1 73.7 91.4)
OKLCHoklch(0.750 0.154 95.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccac00 on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#ccac00 on black: 9.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.5%
Blue0.0%

CMYK percentages

Cyan0.0%
Magenta15.7%
Yellow100.0%
Key (black)20.0%

Color previews

#ccac00 text on a black background

contrast 9.47:1

Card sample

#ccac00 text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccac00

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccac00 in the Color Lab