#2A8720#2A8720

#2A8720 is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.163 H 141.7°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#2A8720
RGBrgb(42, 135, 32)
HSLhsl(114, 62%, 33%)
HSVhsv(114, 76%, 53%)
CMYKcmyk(68.9%, 0%, 76.3%, 47.1%)
CIE-LABlab(49.40, -46.82, 44.63)
CIE-LCHlch(49.40, 64.68, 136.37°)
OKLaboklab(54.84% -0.1277 0.1007)
OKLCHoklch(54.84% 0.163 141.7)
XYZxyz(9.8790, 17.9234, 4.3052)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8720 #7D2087
analogous
#5D8720 #2A8720 #20874A
triadic
#2A8720 #202A87 #87202A
tetradic
#2A8720 #205D87 #7D2087 #874A20
square
#2A8720 #205D87 #7D2087 #874A20
split-complementary
#2A8720 #4A2087 #87205D
monochromatic
#0B2409 #1B5614 #2A8720 #39B82C #5AD54D

Accessibility & contrast

On white

4.58
#2A8720 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#2A8720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8720
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8720#FFFFFF#000000##000000
##2A87201.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0B
Deuteranopia (green-blind)
#7F732B
Tritanopia (blue-blind)
#168373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a8720;
/* rgb */ color: rgb(42, 135, 32);
/* oklch */ color: oklch(54.8% 0.163 141.7);
Tailwind
colors: {
  custom: {
    50: '#72ab63',
    500: '#2a8720',
    950: '#000000',
  },
}
SCSS
$custom: #2a8720;
$custom-light: #72ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8720",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 114.175,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.1626,
    "h": 141.7
  },
  "luminance": 0.17924
}

Semantic roles & 50–950 ramp

primary
#2A8720
secondary
#AD4BB8
accent
#43E5D5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8720

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

Preview Lab → · Contrast checker → · Palette generator →

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