Skip to content

#ccc952

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

RGB
204, 201, 82
HSL
59°, 55%, 56%
CMYK
0, 2, 60, 20
Luminance
0.5522

Every format

HEX#ccc952
RGBrgb(204, 201, 82)
HSLhsl(59, 55%, 56%)
CMYKcmyk(0%, 2%, 60%, 20%)
LABlab(79.2 -13.9 58.2)
LCHlch(79.2 59.9 103.5)
OKLCHoklch(0.816 0.140 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc952 on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#ccc952 on black: 12.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.8%
Blue32.2%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow59.8%
Key (black)20.0%

Color previews

#ccc952 text on a black background

contrast 12.04:1

Card sample

#ccc952 text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc952

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc952 in the Color Lab