Skip to content

#2af06c

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

RGB
42, 240, 108
HSL
140°, 87%, 55%
CMYK
83, 0, 55, 6
Luminance
0.6390

Every format

HEX#2af06c
RGBrgb(42, 240, 108)
HSLhsl(140, 87%, 55%)
CMYKcmyk(83%, 0%, 55%, 6%)
LABlab(83.9 -72.9 50.3)
LCHlch(83.9 88.6 145.4)
OKLCHoklch(0.837 0.230 148.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af06c on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#2af06c on black: 13.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green94.1%
Blue42.4%

CMYK percentages

Cyan82.5%
Magenta0.0%
Yellow55.0%
Key (black)5.9%

Color previews

#2af06c text on a black background

contrast 13.78:1

Card sample

#2af06c text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af06c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af06c in the Color Lab