Skip to content

#ccc477

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

RGB
204, 196, 119
HSL
54°, 46%, 63%
CMYK
0, 4, 42, 20
Luminance
0.5365

Every format

HEX#ccc477
RGBrgb(204, 196, 119)
HSLhsl(54, 46%, 63%)
CMYKcmyk(0%, 4%, 42%, 20%)
LABlab(78.3 -8.2 39.6)
LCHlch(78.3 40.4 101.7)
OKLCHoklch(0.810 0.099 103.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc477 on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#ccc477 on black: 11.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green76.9%
Blue46.7%

CMYK percentages

Cyan0.0%
Magenta3.9%
Yellow41.7%
Key (black)20.0%

Color previews

#ccc477 text on a black background

contrast 11.73:1

Card sample

#ccc477 text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc477

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc477 in the Color Lab