Skip to content

#cccc56

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

RGB
204, 204, 86
HSL
60°, 54%, 57%
CMYK
0, 0, 58, 20
Luminance
0.5669

Every format

HEX#cccc56
RGBrgb(204, 204, 86)
HSLhsl(60, 54%, 57%)
CMYKcmyk(0%, 0%, 58%, 20%)
LABlab(80.0 -15.2 57.4)
LCHlch(80.0 59.4 104.8)
OKLCHoklch(0.822 0.140 109.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccc56 on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#cccc56 on black: 12.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green80.0%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow57.8%
Key (black)20.0%

Color previews

#cccc56 text on a black background

contrast 12.34:1

Card sample

#cccc56 text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccc56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccc56 in the Color Lab