Skip to content

#c7cc21

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

RGB
199, 204, 33
HSL
62°, 72%, 47%
CMYK
3, 0, 84, 20
Luminance
0.5544

Every format

HEX#c7cc21
RGBrgb(199, 204, 33)
HSLhsl(62, 72%, 47%)
CMYKcmyk(3%, 0%, 84%, 20%)
LABlab(79.3 -19.8 74.8)
LCHlch(79.3 77.4 104.8)
OKLCHoklch(0.815 0.173 111.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red78.0%
Green80.0%
Blue12.9%

CMYK percentages

Cyan2.5%
Magenta0.0%
Yellow83.8%
Key (black)20.0%

Color previews

#c7cc21 text on a black background

contrast 12.09:1

Card sample

#c7cc21 text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(199, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7cc21;
background: linear-gradient(135deg, #c7cc21, #55CC21);

Monochromatic scale

Palettes built from #c7cc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7cc21 in the Color Lab