Skip to content

#c2cd28

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

RGB
194, 205, 40
HSL
64°, 67%, 48%
CMYK
5, 0, 81, 20
Luminance
0.5529

Every format

HEX#c2cd28
RGBrgb(194, 205, 40)
HSLhsl(64, 67%, 48%)
CMYKcmyk(5%, 0%, 81%, 20%)
LABlab(79.2 -22.2 72.9)
LCHlch(79.2 76.2 107.0)
OKLCHoklch(0.813 0.172 113.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red76.1%
Green80.4%
Blue15.7%

CMYK percentages

Cyan5.4%
Magenta0.0%
Yellow80.5%
Key (black)19.6%

Color previews

#c2cd28 text on a black background

contrast 12.06:1

Card sample

#c2cd28 text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 205, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 205, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2cd28;
background: linear-gradient(135deg, #c2cd28, #54CD28);

Monochromatic scale

Palettes built from #c2cd28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2cd28 in the Color Lab