Skip to content

#ccc976

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

RGB
204, 201, 118
HSL
58°, 46%, 63%
CMYK
0, 2, 42, 20
Luminance
0.5592

Every format

HEX#ccc976
RGBrgb(204, 201, 118)
HSLhsl(58, 46%, 63%)
CMYKcmyk(0%, 2%, 42%, 20%)
LABlab(79.6 -10.8 41.7)
LCHlch(79.6 43.1 104.6)
OKLCHoklch(0.820 0.105 106.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc976 on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#ccc976 on black: 12.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.8%
Blue46.3%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow42.2%
Key (black)20.0%

Color previews

#ccc976 text on a black background

contrast 12.18:1

Card sample

#ccc976 text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 201, 118, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 201, 118, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc976;
background: linear-gradient(135deg, #ccc976, #96CC76);

Monochromatic scale

Palettes built from #ccc976

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc976 in the Color Lab