Skip to content

#c2df2a

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

RGB
194, 223, 42
HSL
70°, 74%, 52%
CMYK
13, 0, 81, 13
Luminance
0.6441

Every format

HEX#c2df2a
RGBrgb(194, 223, 42)
HSLhsl(70, 74%, 52%)
CMYKcmyk(13%, 0%, 81%, 13%)
LABlab(84.2 -30.7 76.7)
LCHlch(84.2 82.7 111.8)
OKLCHoklch(0.853 0.191 119.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2df2a on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#c2df2a on black: 13.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green87.5%
Blue16.5%

CMYK percentages

Cyan13.0%
Magenta0.0%
Yellow81.2%
Key (black)12.5%

Color previews

#c2df2a text on a black background

contrast 13.88:1

Card sample

#c2df2a text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 223, 42, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 223, 42, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2df2a;
background: linear-gradient(135deg, #c2df2a, #4ADF2A);

Monochromatic scale

Palettes built from #c2df2a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2df2a in the Color Lab