#2A871E#2A871E

#2A871E is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.164 H 141.5°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#2A871E
RGBrgb(42, 135, 30)
HSLhsl(113, 64%, 32%)
HSVhsv(113, 78%, 53%)
CMYKcmyk(68.9%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.39, -46.98, 45.35)
CIE-LCHlch(49.39, 65.29, 136.01°)
OKLaboklab(54.83% -0.1282 0.1019)
OKLCHoklch(54.83% 0.164 141.5)
XYZxyz(9.8526, 17.9129, 4.1663)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A871E #7B1E87
analogous
#5E871E #2A871E #1E8747
triadic
#2A871E #1E2A87 #871E2A
tetradic
#2A871E #1E5E87 #7B1E87 #87471E
square
#2A871E #1E5E87 #7B1E87 #87471E
split-complementary
#2A871E #471E87 #871E5E
monochromatic
#0B2308 #1A5513 #2A871E #3AB929 #59D749

Accessibility & contrast

On white

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

On black

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

Best text color

#000000 on #2A871E
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A871E#FFFFFF#000000##000000
##2A871E1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A06
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#168373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a871e;
/* rgb */ color: rgb(42, 135, 30);
/* oklch */ color: oklch(54.8% 0.164 141.5);
Tailwind
colors: {
  custom: {
    50: '#72ab62',
    500: '#2a871e',
    950: '#000000',
  },
}
SCSS
$custom: #2a871e;
$custom-light: #72ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a871e",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 113.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54826,
    "c": 0.16376,
    "h": 141.5
  },
  "luminance": 0.17914
}

Semantic roles & 50–950 ramp

primary
#2A871E
secondary
#AC48B9
accent
#41E7D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2A871E

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

Preview Lab → · Contrast checker → · Palette generator →

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