#2A7E20#2A7E20

#2A7E20 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.152 H 141.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2A7E20
RGBrgb(42, 126, 32)
HSLhsl(114, 59%, 31%)
HSVhsv(114, 75%, 49%)
CMYKcmyk(66.7%, 0%, 74.6%, 50.6%)
CIE-LABlab(46.33, -43.56, 41.52)
CIE-LCHlch(46.33, 60.18, 136.37°)
OKLaboklab(52.3% -0.1188 0.0942)
OKLCHoklch(52.3% 0.152 141.6)
XYZxyz(8.6760, 15.5174, 3.9042)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E20 #74207E
analogous
#597E20 #2A7E20 #207E45
triadic
#2A7E20 #202A7E #7E202A
tetradic
#2A7E20 #20597E #74207E #7E4520
square
#2A7E20 #20597E #74207E #7E4520
split-complementary
#2A7E20 #45207E #7E2059
monochromatic
#091C07 #1A4D14 #2A7E20 #3AAF2C #56D048

Accessibility & contrast

On white

5.12
#2A7E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A7E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E20
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E20#FFFFFF#000000##FFFFFF
##2A7E201.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817210
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#1A7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e20;
/* rgb */ color: rgb(42, 126, 32);
/* oklch */ color: oklch(52.3% 0.152 141.6);
Tailwind
colors: {
  custom: {
    50: '#70a462',
    500: '#2a7e20',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e20;
$custom-light: #70a462;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e20",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 113.617,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52299,
    "c": 0.15165,
    "h": 141.6
  },
  "luminance": 0.15518
}

Semantic roles & 50–950 ramp

primary
#2A7E20
secondary
#A649B1
accent
#45E3D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7E20

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

Preview Lab → · Contrast checker → · Palette generator →

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