Skip to content

#ccc30c

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

RGB
204, 195, 12
HSL
57°, 89%, 42%
CMYK
0, 4, 94, 20
Luminance
0.5189

Every format

HEX#ccc30c
RGBrgb(204, 195, 12)
HSLhsl(57, 89%, 42%)
CMYKcmyk(0%, 4%, 94%, 20%)
LABlab(77.2 -13.6 76.9)
LCHlch(77.2 78.1 100.0)
OKLCHoklch(0.799 0.169 106.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc30c on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#ccc30c on black: 11.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green76.5%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta4.4%
Yellow94.1%
Key (black)20.0%

Color previews

#ccc30c text on a black background

contrast 11.38:1

Card sample

#ccc30c text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc30c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc30c in the Color Lab