Skip to content

#ccc877

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

RGB
204, 200, 119
HSL
57°, 46%, 63%
CMYK
0, 2, 42, 20
Luminance
0.5548

Every format

HEX#ccc877
RGBrgb(204, 200, 119)
HSLhsl(57, 46%, 63%)
CMYKcmyk(0%, 2%, 42%, 20%)
LABlab(79.3 -10.2 40.9)
LCHlch(79.3 42.2 104.0)
OKLCHoklch(0.818 0.103 106.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green78.4%
Blue46.7%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow41.7%
Key (black)20.0%

Color previews

#ccc877 text on a black background

contrast 12.10:1

Card sample

#ccc877 text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc877

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc877 in the Color Lab