Skip to content

#c7d921

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

RGB
199, 217, 33
HSL
66°, 74%, 49%
CMYK
8, 0, 85, 15
Luminance
0.6188

Every format

HEX#c7d921
RGBrgb(199, 217, 33)
HSLhsl(66, 74%, 49%)
CMYKcmyk(8%, 0%, 85%, 15%)
LABlab(82.8 -26.1 77.8)
LCHlch(82.8 82.1 108.6)
OKLCHoklch(0.843 0.186 115.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7d921 on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#c7d921 on black: 13.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green85.1%
Blue12.9%

CMYK percentages

Cyan8.3%
Magenta0.0%
Yellow84.8%
Key (black)14.9%

Color previews

#c7d921 text on a black background

contrast 13.38:1

Card sample

#c7d921 text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7d921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7d921 in the Color Lab