Skip to content

#ccc84c

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

RGB
204, 200, 76
HSL
58°, 56%, 55%
CMYK
0, 2, 63, 20
Luminance
0.5467

Every format

HEX#ccc84c
RGBrgb(204, 200, 76)
HSLhsl(58, 56%, 55%)
CMYKcmyk(0%, 2%, 63%, 20%)
LABlab(78.8 -13.8 60.4)
LCHlch(78.8 62.0 102.9)
OKLCHoklch(0.813 0.144 107.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc84c on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#ccc84c on black: 11.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.4%
Blue29.8%

CMYK percentages

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

Color previews

#ccc84c text on a black background

contrast 11.93:1

Card sample

#ccc84c text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc84c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc84c in the Color Lab