#2A871A#2A871A

#2A871A is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.166 H 141.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#2A871A
RGBrgb(42, 135, 26)
HSLhsl(111, 68%, 32%)
HSVhsv(111, 81%, 53%)
CMYKcmyk(68.9%, 0%, 80.7%, 47.1%)
CIE-LABlab(49.37, -47.26, 46.69)
CIE-LCHlch(49.37, 66.44, 135.34°)
OKLaboklab(54.8% -0.1292 0.1041)
OKLCHoklch(54.8% 0.166 141.1)
XYZxyz(9.8048, 17.8938, 3.9142)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A871A #771A87
analogous
#61871A #2A871A #1A8741
triadic
#2A871A #1A2A87 #871A2A
tetradic
#2A871A #1A6187 #771A87 #87411A
square
#2A871A #1A6187 #771A87 #87411A
split-complementary
#2A871A #411A87 #871A61
monochromatic
#0A2006 #1A5410 #2A871A #3ABA24 #58DA41

Accessibility & contrast

On white

4.59
#2A871A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#2A871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A871A
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A871A#FFFFFF#000000##FFFFFF
##2A871A1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#178373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a871a;
/* rgb */ color: rgb(42, 135, 26);
/* oklch */ color: oklch(54.8% 0.166 141.1);
Tailwind
colors: {
  custom: {
    50: '#72ab60',
    500: '#2a871a',
    950: '#000000',
  },
}
SCSS
$custom: #2a871a;
$custom-light: #72ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#2a871a",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 111.193,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.548,
    "c": 0.16591,
    "h": 141.1
  },
  "luminance": 0.17895
}

Semantic roles & 50–950 ramp

primary
#2A871A
secondary
#A942BA
accent
#3DEBD1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A871A

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

Preview Lab → · Contrast checker → · Palette generator →

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