Skip to content

#c2f040

a balanced, electric green · cool · closest name: yellow

RGB
194, 240, 64
HSL
76°, 85%, 60%
CMYK
19, 0, 73, 6
Luminance
0.7416

Every format

HEX#c2f040
RGBrgb(194, 240, 64)
HSLhsl(76, 85%, 60%)
CMYKcmyk(19%, 0%, 73%, 6%)
LABlab(89.0 -37.6 74.8)
LCHlch(89.0 83.8 116.7)
OKLCHoklch(0.892 0.199 123.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2f040 on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#c2f040 on black: 15.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green94.1%
Blue25.1%

CMYK percentages

Cyan19.2%
Magenta0.0%
Yellow73.3%
Key (black)5.9%

Color previews

#c2f040 text on a black background

contrast 15.83:1

Card sample

#c2f040 text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2f040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2f040 in the Color Lab