Skip to content

#c8c921

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

RGB
200, 201, 33
HSL
60°, 72%, 46%
CMYK
1, 0, 84, 21
Luminance
0.5416

Every format

HEX#c8c921
RGBrgb(200, 201, 33)
HSLhsl(60, 72%, 46%)
CMYKcmyk(1%, 0%, 84%, 21%)
LABlab(78.6 -17.9 74.3)
LCHlch(78.6 76.4 103.6)
OKLCHoklch(0.809 0.170 110.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c8c921 on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#c8c921 on black: 11.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.4%
Green78.8%
Blue12.9%

CMYK percentages

Cyan0.5%
Magenta0.0%
Yellow83.6%
Key (black)21.2%

Color previews

#c8c921 text on a black background

contrast 11.83:1

Card sample

#c8c921 text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(200, 201, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(200, 201, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c8c921;
background: linear-gradient(135deg, #c8c921, #58C921);

Monochromatic scale

Palettes built from #c8c921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c8c921 in the Color Lab