Skip to content

#c2cc55

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

RGB
194, 204, 85
HSL
65°, 54%, 57%
CMYK
5, 0, 58, 20
Luminance
0.5531

Every format

HEX#c2cc55
RGBrgb(194, 204, 85)
HSLhsl(65, 54%, 57%)
CMYKcmyk(5%, 0%, 58%, 20%)
LABlab(79.2 -19.4 56.8)
LCHlch(79.2 60.0 108.8)
OKLCHoklch(0.814 0.143 113.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red76.1%
Green80.0%
Blue33.3%

CMYK percentages

Cyan4.9%
Magenta0.0%
Yellow58.3%
Key (black)20.0%

Color previews

#c2cc55 text on a black background

contrast 12.06:1

Card sample

#c2cc55 text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 204, 85, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 204, 85, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2cc55;
background: linear-gradient(135deg, #c2cc55, #73CC55);

Monochromatic scale

Palettes built from #c2cc55

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2cc55 in the Color Lab