Skip to content

#2af039

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

RGB
42, 240, 57
HSL
125°, 87%, 55%
CMYK
83, 0, 76, 6
Luminance
0.6311

Every format

HEX#2af039
RGBrgb(42, 240, 57)
HSLhsl(125, 87%, 55%)
CMYKcmyk(83%, 0%, 76%, 6%)
LABlab(83.5 -78.0 69.8)
LCHlch(83.5 104.7 138.1)
OKLCHoklch(0.832 0.263 143.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af039 on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#2af039 on black: 13.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green94.1%
Blue22.4%

CMYK percentages

Cyan82.5%
Magenta0.0%
Yellow76.3%
Key (black)5.9%

Color previews

#2af039 text on a black background

contrast 13.62:1

Card sample

#2af039 text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 240, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 240, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2af039;
background: linear-gradient(135deg, #2af039, #2AF0BD);

Monochromatic scale

Palettes built from #2af039

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af039 in the Color Lab