#2A8E22#2A8E22

#2A8E22 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.8% C 0.170 H 142.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2A8E22
RGBrgb(42, 142, 34)
HSLhsl(116, 61%, 35%)
HSVhsv(116, 76%, 56%)
CMYKcmyk(70.4%, 0%, 76.1%, 44.3%)
CIE-LABlab(51.78, -49.13, 46.27)
CIE-LCHlch(51.78, 67.49, 136.72°)
OKLaboklab(56.82% -0.1338 0.1044)
OKLCHoklch(56.82% 0.17 142)
XYZxyz(10.9160, 19.9526, 4.7890)
Luminance0.1995 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8E22 #86228E
analogous
#608E22 #2A8E22 #228E50
triadic
#2A8E22 #222A8E #8E222A
tetradic
#2A8E22 #22608E #86228E #8E5022
square
#2A8E22 #22608E #86228E #8E5022
split-complementary
#2A8E22 #50228E #8E2260
monochromatic
#0D2B0A #1B5D16 #2A8E22 #39BF2E #5ED654

Accessibility & contrast

On white

4.21
#2A8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#2A8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8E22
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8E22#FFFFFF#000000##000000
##2A8E221.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800C
Deuteranopia (green-blind)
#86782E
Tritanopia (blue-blind)
#118A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2a8e22;
/* rgb */ color: rgb(42, 142, 34);
/* oklch */ color: oklch(56.8% 0.170 142.0);
Tailwind
colors: {
  custom: {
    50: '#73b065',
    500: '#2a8e22',
    950: '#000000',
  },
}
SCSS
$custom: #2a8e22;
$custom-light: #73b065;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8e22",
  "rgb": {
    "r": 42,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 115.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56819,
    "c": 0.16971,
    "h": 142
  },
  "luminance": 0.19954
}

Semantic roles & 50–950 ramp

primary
#2A8E22
secondary
#B252BA
accent
#43E4D9
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2A8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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