Skip to content

#ccc500

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

RGB
204, 197, 0
HSL
58°, 100%, 40%
CMYK
0, 3, 100, 20
Luminance
0.5277

Every format

HEX#ccc500
RGBrgb(204, 197, 0)
HSLhsl(58, 100%, 40%)
CMYKcmyk(0%, 3%, 100%, 20%)
LABlab(77.7 -14.7 78.5)
LCHlch(77.7 79.8 100.6)
OKLCHoklch(0.803 0.172 107.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc500 on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#ccc500 on black: 11.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green77.3%
Blue0.0%

CMYK percentages

Cyan0.0%
Magenta3.4%
Yellow100.0%
Key (black)20.0%

Color previews

#ccc500 text on a black background

contrast 11.55:1

Card sample

#ccc500 text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc500

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc500 in the Color Lab