Skip to content

#ccaa00

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

RGB
204, 170, 0
HSL
50°, 100%, 40%
CMYK
0, 17, 100, 20
Luminance
0.4159

Every format

HEX#ccaa00
RGBrgb(204, 170, 0)
HSLhsl(50, 100%, 40%)
CMYKcmyk(0%, 17%, 100%, 20%)
LABlab(70.6 -0.8 73.4)
LCHlch(70.6 73.4 90.6)
OKLCHoklch(0.746 0.153 94.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaa00 on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#ccaa00 on black: 9.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green66.7%
Blue0.0%

CMYK percentages

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

Color previews

#ccaa00 text on a black background

contrast 9.32:1

Card sample

#ccaa00 text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaa00

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaa00 in the Color Lab