Skip to content

#ccc401

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

RGB
204, 196, 1
HSL
58°, 99%, 40%
CMYK
0, 4, 100, 20
Luminance
0.5232

Every format

HEX#ccc401
RGBrgb(204, 196, 1)
HSLhsl(58, 99%, 40%)
CMYKcmyk(0%, 4%, 100%, 20%)
LABlab(77.5 -14.2 78.2)
LCHlch(77.5 79.5 100.3)
OKLCHoklch(0.801 0.171 106.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc401 on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#ccc401 on black: 11.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green76.9%
Blue0.4%

CMYK percentages

Cyan0.0%
Magenta3.9%
Yellow99.5%
Key (black)20.0%

Color previews

#ccc401 text on a black background

contrast 11.46:1

Card sample

#ccc401 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc401

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc401 in the Color Lab