#2A8A40#2A8A40

#2A8A40 is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.141 H 147.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#2A8A40
RGBrgb(42, 138, 64)
HSLhsl(134, 53%, 35%)
HSVhsv(134, 70%, 54%)
CMYKcmyk(69.6%, 0%, 53.6%, 45.9%)
CIE-LABlab(50.73, -44.21, 31.48)
CIE-LCHlch(50.73, 54.27, 144.55°)
OKLaboklab(56.04% -0.1192 0.0758)
OKLCHoklch(56.04% 0.141 147.5)
XYZxyz(10.9679, 19.0382, 7.9462)
Luminance0.1904 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A40 #8A2A74
analogous
#448A2A #2A8A40 #2A8A70
triadic
#2A8A40 #402A8A #8A402A
tetradic
#2A8A40 #2A448A #8A2A74 #8A702A
square
#2A8A40 #2A448A #8A2A74 #8A702A
split-complementary
#2A8A40 #702A8A #8A2A44
monochromatic
#0D2C14 #1C5B2A #2A8A40 #38B956 #60CF79

Accessibility & contrast

On white

4.37
#2A8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#2A8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A40
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A40#FFFFFF#000000##000000
##2A8A401.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E3A
Deuteranopia (green-blind)
#807645
Tritanopia (blue-blind)
#018779
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a8a40;
/* rgb */ color: rgb(42, 138, 64);
/* oklch */ color: oklch(56.0% 0.141 147.5);
Tailwind
colors: {
  custom: {
    50: '#71ad76',
    500: '#2a8a40',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a40;
$custom-light: #71ad76;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a40",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 133.75,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56043,
    "c": 0.14127,
    "h": 147.5
  },
  "luminance": 0.19039
}

Semantic roles & 50–950 ramp

primary
#2A8A40
secondary
#B45BA0
accent
#4BBBDD
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2A8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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