Skip to content

#c0cb2c

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

RGB
192, 203, 44
HSL
64°, 64%, 48%
CMYK
5, 0, 78, 20
Luminance
0.5410

Every format

HEX#c0cb2c
RGBrgb(192, 203, 44)
HSLhsl(64, 64%, 48%)
CMYKcmyk(5%, 0%, 78%, 20%)
LABlab(78.5 -21.9 71.2)
LCHlch(78.5 74.5 107.1)
OKLCHoklch(0.807 0.169 113.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0cb2c on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#c0cb2c on black: 11.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green79.6%
Blue17.3%

CMYK percentages

Cyan5.4%
Magenta0.0%
Yellow78.3%
Key (black)20.4%

Color previews

#c0cb2c text on a black background

contrast 11.82:1

Card sample

#c0cb2c text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 203, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 203, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c0cb2c;
background: linear-gradient(135deg, #c0cb2c, #56CB2C);

Monochromatic scale

Palettes built from #c0cb2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0cb2c in the Color Lab