Skip to content

#cccc49

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

RGB
204, 204, 73
HSL
60°, 56%, 54%
CMYK
0, 0, 64, 20
Luminance
0.5650

Every format

HEX#cccc49
RGBrgb(204, 204, 73)
HSLhsl(60, 56%, 54%)
CMYKcmyk(0%, 0%, 64%, 20%)
LABlab(79.9 -16.0 62.8)
LCHlch(79.9 64.8 104.3)
OKLCHoklch(0.821 0.150 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccc49 on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#cccc49 on black: 12.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green80.0%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow64.2%
Key (black)20.0%

Color previews

#cccc49 text on a black background

contrast 12.30:1

Card sample

#cccc49 text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccc49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccc49 in the Color Lab