Skip to content

#c7cb2c

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

RGB
199, 203, 44
HSL
62°, 64%, 48%
CMYK
2, 0, 78, 20
Luminance
0.5504

Every format

HEX#c7cb2c
RGBrgb(199, 203, 44)
HSLhsl(62, 64%, 48%)
CMYKcmyk(2%, 0%, 78%, 20%)
LABlab(79.1 -19.0 71.8)
LCHlch(79.1 74.3 104.8)
OKLCHoklch(0.813 0.167 111.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red78.0%
Green79.6%
Blue17.3%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow78.3%
Key (black)20.4%

Color previews

#c7cb2c text on a black background

contrast 12.01:1

Card sample

#c7cb2c text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7cb2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7cb2c in the Color Lab