#2A8740#2A8740

#2A8740 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.2% C 0.137 H 147.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#2A8740
RGBrgb(42, 135, 64)
HSLhsl(134, 53%, 35%)
HSVhsv(134, 69%, 53%)
CMYKcmyk(68.9%, 0%, 52.6%, 47.1%)
CIE-LABlab(49.72, -43.05, 30.24)
CIE-LCHlch(49.72, 52.61, 144.92°)
OKLaboklab(55.21% -0.1161 0.0731)
OKLCHoklch(55.21% 0.137 147.8)
XYZxyz(10.5435, 18.1892, 7.8047)
Luminance0.1819 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8740 #872A71
analogous
#42872A #2A8740 #2A876F
triadic
#2A8740 #402A87 #87402A
tetradic
#2A8740 #2A4287 #872A71 #876F2A
square
#2A8740 #2A4287 #872A71 #876F2A
split-complementary
#2A8740 #6F2A87 #872A42
monochromatic
#0D2A14 #1B582A #2A8740 #39B656 #5ECD79

Accessibility & contrast

On white

4.53
#2A8740 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#2A8740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8740
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8740#FFFFFF#000000##000000
##2A87401.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887B3A
Deuteranopia (green-blind)
#7D7345
Tritanopia (blue-blind)
#048477
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2a8740;
/* rgb */ color: rgb(42, 135, 64);
/* oklch */ color: oklch(55.2% 0.137 147.8);
Tailwind
colors: {
  custom: {
    50: '#70ab76',
    500: '#2a8740',
    950: '#000000',
  },
}
SCSS
$custom: #2a8740;
$custom-light: #70ab76;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8740",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 64
  },
  "hsl": {
    "h": 134.194,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.55211,
    "c": 0.13717,
    "h": 147.8
  },
  "luminance": 0.1819
}

Semantic roles & 50–950 ramp

primary
#2A8740
secondary
#B35A9E
accent
#4CBADC
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #2A8740

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

Preview Lab → · Contrast checker → · Palette generator →

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