Skip to content

#2aba2f

a dark, vivid green · cool · closest name: forestgreen

RGB
42, 186, 47
HSL
122°, 63%, 45%
CMYK
77, 0, 75, 27
Luminance
0.3582

Every format

HEX#2aba2f
RGBrgb(42, 186, 47)
HSLhsl(122, 63%, 45%)
CMYKcmyk(77%, 0%, 75%, 27%)
LABlab(66.4 -62.6 56.2)
LCHlch(66.4 84.1 138.1)
OKLCHoklch(0.690 0.212 143.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2aba2f on white: 2.57:1
AA ✗ fail · AA-large · AAA
Aa
#2aba2f on black: 8.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green72.9%
Blue18.4%

CMYK percentages

Cyan77.4%
Magenta0.0%
Yellow74.7%
Key (black)27.1%

Color previews

#2aba2f text on a black background

contrast 8.16:1

Card sample

#2aba2f text on a white background

contrast 2.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2aba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2aba2f in the Color Lab