Skip to content

#c0cc2f

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

RGB
192, 204, 47
HSL
65°, 63%, 49%
CMYK
6, 0, 77, 20
Luminance
0.5460

Every format

HEX#c0cc2f
RGBrgb(192, 204, 47)
HSLhsl(65, 63%, 49%)
CMYKcmyk(6%, 0%, 77%, 20%)
LABlab(78.8 -22.3 70.5)
LCHlch(78.8 74.0 107.6)
OKLCHoklch(0.810 0.169 114.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red75.3%
Green80.0%
Blue18.4%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow77.0%
Key (black)20.0%

Color previews

#c0cc2f text on a black background

contrast 11.92:1

Card sample

#c0cc2f text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c0cc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0cc2f in the Color Lab