#2AB940#2AB940

#2AB940 is a light, vivid green. Relative luminance 0.356; OKLCH L 68.8% C 0.200 H 145.0°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#2AB940
RGBrgb(42, 185, 64)
HSLhsl(129, 63%, 45%)
HSVhsv(129, 77%, 73%)
CMYKcmyk(77.3%, 0%, 65.4%, 27.5%)
CIE-LABlab(66.18, -60.71, 49.40)
CIE-LCHlch(66.18, 78.27, 140.87°)
OKLaboklab(68.84% -0.1638 0.1146)
OKLCHoklch(68.84% 0.2 145)
XYZxyz(19.2279, 35.5581, 10.6995)
Luminance0.3556 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2AB940 #B92AA3
analogous
#5BB92A #2AB940 #2AB988
triadic
#2AB940 #402AB9 #B9402A
tetradic
#2AB940 #2A5BB9 #B92AA3 #B9882A
square
#2AB940 #2A5BB9 #B92AA3 #B9882A
split-complementary
#2AB940 #882AB9 #B92A5B
monochromatic
#13551D #1F872F #2AB940 #4AD660 #7CE18C

Accessibility & contrast

On white

2.59
#2AB940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#2AB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #2AB940
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2AB940#FFFFFF#000000##000000
##2AB9401.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA831
Deuteranopia (green-blind)
#AC9D4B
Tritanopia (blue-blind)
#00B4A0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #2ab940;
/* rgb */ color: rgb(42, 185, 64);
/* oklch */ color: oklch(68.8% 0.200 145.0);
Tailwind
colors: {
  custom: {
    50: '#7ccf7a',
    500: '#2ab940',
    950: '#000000',
  },
}
SCSS
$custom: #2ab940;
$custom-light: #7ccf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2ab940",
  "rgb": {
    "r": 42,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 129.231,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.68842,
    "c": 0.19994,
    "h": 145
  },
  "luminance": 0.3556
}

Semantic roles & 50–950 ramp

primary
#2AB940
secondary
#CA75BD
accent
#42CDE6
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B1409
muted
#7C827B

Preview Lab

Preview with #2AB940

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2AB940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva