Skip to content

#c8cc56

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

RGB
200, 204, 86
HSL
62°, 54%, 57%
CMYK
2, 0, 58, 20
Luminance
0.5614

Every format

HEX#c8cc56
RGBrgb(200, 204, 86)
HSLhsl(62, 54%, 57%)
CMYKcmyk(2%, 0%, 58%, 20%)
LABlab(79.7 -16.8 57.0)
LCHlch(79.7 59.4 106.5)
OKLCHoklch(0.819 0.141 110.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c8cc56 on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#c8cc56 on black: 12.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.4%
Green80.0%
Blue33.7%

CMYK percentages

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

Color previews

#c8cc56 text on a black background

contrast 12.23:1

Card sample

#c8cc56 text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c8cc56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c8cc56 in the Color Lab