Skip to content

#c0cc56

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

RGB
192, 204, 86
HSL
66°, 54%, 57%
CMYK
6, 0, 58, 20
Luminance
0.5506

Every format

HEX#c0cc56
RGBrgb(192, 204, 86)
HSLhsl(66, 54%, 57%)
CMYKcmyk(6%, 0%, 58%, 20%)
LABlab(79.1 -20.1 56.1)
LCHlch(79.1 59.6 109.7)
OKLCHoklch(0.813 0.142 114.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0cc56 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#c0cc56 on black: 12.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green80.0%
Blue33.7%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow57.8%
Key (black)20.0%

Color previews

#c0cc56 text on a black background

contrast 12.01:1

Card sample

#c0cc56 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c0cc56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0cc56 in the Color Lab