#2A7020#2A7020

#2A7020 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.3% C 0.134 H 141.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2A7020
RGBrgb(42, 112, 32)
HSLhsl(113, 56%, 28%)
HSVhsv(113, 71%, 44%)
CMYKcmyk(62.5%, 0%, 71.4%, 56.1%)
CIE-LABlab(41.51, -38.20, 36.49)
CIE-LCHlch(41.51, 52.83, 136.31°)
OKLaboklab(48.31% -0.1043 0.0837)
OKLCHoklch(48.31% 0.134 141.3)
XYZxyz(7.0094, 12.1842, 3.3486)
Luminance0.1218 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7020 #662070
analogous
#527020 #2A7020 #20703E
triadic
#2A7020 #202A70 #70202A
tetradic
#2A7020 #205270 #662070 #703E20
square
#2A7020 #205270 #662070 #703E20
split-complementary
#2A7020 #3E2070 #702052
monochromatic
#091807 #184012 #2A7020 #3CA02E #52C942

Accessibility & contrast

On white

6.11
#2A7020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2A7020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7020
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7020#FFFFFF#000000##FFFFFF
##2A70201.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736515
Deuteranopia (green-blind)
#6A6027
Tritanopia (blue-blind)
#1F6C60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a7020;
/* rgb */ color: rgb(42, 112, 32);
/* oklch */ color: oklch(48.3% 0.134 141.3);
Tailwind
colors: {
  custom: {
    50: '#6d9a60',
    500: '#2a7020',
    950: '#000000',
  },
}
SCSS
$custom: #2a7020;
$custom-light: #6d9a60;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7020",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 32
  },
  "hsl": {
    "h": 112.5,
    "s": 55.556,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48308,
    "c": 0.13374,
    "h": 141.3
  },
  "luminance": 0.12185
}

Semantic roles & 50–950 ramp

primary
#2A7020
secondary
#9848A4
accent
#49DFCC
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #2A7020

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

Preview Lab → · Contrast checker → · Palette generator →

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