Skip to content

#ccc428

a balanced, vivid yellow · cool · closest name: gold

RGB
204, 196, 40
HSL
57°, 67%, 48%
CMYK
0, 4, 80, 20
Luminance
0.5247

Every format

HEX#ccc428
RGBrgb(204, 196, 40)
HSLhsl(57, 67%, 48%)
CMYKcmyk(0%, 4%, 80%, 20%)
LABlab(77.6 -13.5 71.8)
LCHlch(77.6 73.1 100.7)
OKLCHoklch(0.802 0.162 106.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green76.9%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta3.9%
Yellow80.4%
Key (black)20.0%

Color previews

#ccc428 text on a black background

contrast 11.49:1

Card sample

#ccc428 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc428

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc428 in the Color Lab