#2A8722#2A8722

#2A8722 is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.9% C 0.161 H 142.0°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#2A8722
RGBrgb(42, 135, 34)
HSLhsl(115, 60%, 33%)
HSVhsv(115, 75%, 53%)
CMYKcmyk(68.9%, 0%, 74.8%, 47.1%)
CIE-LABlab(49.42, -46.66, 43.88)
CIE-LCHlch(49.42, 64.05, 136.76°)
OKLaboklab(54.86% -0.1271 0.0994)
OKLCHoklch(54.86% 0.161 142)
XYZxyz(9.9070, 17.9347, 4.4527)
Luminance0.1794 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8722 #7F2287
analogous
#5C8722 #2A8722 #22874D
triadic
#2A8722 #222A87 #87222A
tetradic
#2A8722 #225C87 #7F2287 #874D22
square
#2A8722 #225C87 #7F2287 #874D22
split-complementary
#2A8722 #4D2287 #87225C
monochromatic
#0C2509 #1B5616 #2A8722 #39B82E #5BD350

Accessibility & contrast

On white

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

On black

4.59
#2A8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8722
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8722#FFFFFF#000000##000000
##2A87221.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A10
Deuteranopia (green-blind)
#7F732C
Tritanopia (blue-blind)
#158373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a8722;
/* rgb */ color: rgb(42, 135, 34);
/* oklch */ color: oklch(54.9% 0.161 142.0);
Tailwind
colors: {
  custom: {
    50: '#71ab64',
    500: '#2a8722',
    950: '#000000',
  },
}
SCSS
$custom: #2a8722;
$custom-light: #71ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8722",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 115.248,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54857,
    "c": 0.16138,
    "h": 142
  },
  "luminance": 0.17936
}

Semantic roles & 50–950 ramp

primary
#2A8722
secondary
#AE4EB7
accent
#45E3D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8722

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

Preview Lab → · Contrast checker → · Palette generator →

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