#2A8020#2A8020

#2A8020 is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.154 H 141.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2A8020
RGBrgb(42, 128, 32)
HSLhsl(114, 60%, 31%)
HSVhsv(114, 75%, 50%)
CMYKcmyk(67.2%, 0%, 75%, 49.8%)
CIE-LABlab(47.02, -44.29, 42.22)
CIE-LCHlch(47.02, 61.19, 136.37°)
OKLaboklab(52.87% -0.1208 0.0957)
OKLCHoklch(52.87% 0.154 141.6)
XYZxyz(8.9343, 16.0340, 3.9903)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8020 #762080
analogous
#5A8020 #2A8020 #208046
triadic
#2A8020 #202A80 #80202A
tetradic
#2A8020 #205A80 #762080 #804620
square
#2A8020 #205A80 #762080 #804620
split-complementary
#2A8020 #462080 #80205A
monochromatic
#0A1E08 #1A4F14 #2A8020 #3AB12C #57D149

Accessibility & contrast

On white

4.99
#2A8020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2A8020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8020
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8020#FFFFFF#000000##FFFFFF
##2A80201.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83740F
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#197C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a8020;
/* rgb */ color: rgb(42, 128, 32);
/* oklch */ color: oklch(52.9% 0.154 141.6);
Tailwind
colors: {
  custom: {
    50: '#70a662',
    500: '#2a8020',
    950: '#000000',
  },
}
SCSS
$custom: #2a8020;
$custom-light: #70a662;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8020",
  "rgb": {
    "r": 42,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 113.75,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52866,
    "c": 0.15412,
    "h": 141.6
  },
  "luminance": 0.16035
}

Semantic roles & 50–950 ramp

primary
#2A8020
secondary
#A849B3
accent
#45E3D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A8020

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

Preview Lab → · Contrast checker → · Palette generator →

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