Skip to content

#ccc804

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

RGB
204, 200, 4
HSL
59°, 96%, 41%
CMYK
0, 2, 98, 20
Luminance
0.5415

Every format

HEX#ccc804
RGBrgb(204, 200, 4)
HSLhsl(59, 96%, 41%)
CMYKcmyk(0%, 2%, 98%, 20%)
LABlab(78.5 -16.2 78.7)
LCHlch(78.5 80.3 101.6)
OKLCHoklch(0.810 0.174 108.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc804 on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#ccc804 on black: 11.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.4%
Blue1.6%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow98.0%
Key (black)20.0%

Color previews

#ccc804 text on a black background

contrast 11.83:1

Card sample

#ccc804 text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc804

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc804 in the Color Lab