#2A871C#2A871C

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

Color values

HEX#2A871C
RGBrgb(42, 135, 28)
HSLhsl(112, 66%, 32%)
HSVhsv(112, 79%, 53%)
CMYKcmyk(68.9%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.38, -47.12, 46.04)
CIE-LCHlch(49.38, 65.88, 135.67°)
OKLaboklab(54.81% -0.1287 0.103)
OKLCHoklch(54.81% 0.165 141.3)
XYZxyz(9.8279, 17.9030, 4.0361)
Luminance0.1790 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A871C #791C87
analogous
#5F871C #2A871C #1C8744
triadic
#2A871C #1C2A87 #871C2A
tetradic
#2A871C #1C5F87 #791C87 #87441C
square
#2A871C #1C5F87 #791C87 #87441C
split-complementary
#2A871C #441C87 #871C5F
monochromatic
#0A2207 #1A5411 #2A871C #3ABA27 #58D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A871C#FFFFFF#000000##000000
##2A871C1.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)
#8B7A02
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#178373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a871c;
/* rgb */ color: rgb(42, 135, 28);
/* oklch */ color: oklch(54.8% 0.165 141.3);
Tailwind
colors: {
  custom: {
    50: '#72ab61',
    500: '#2a871c',
    950: '#000000',
  },
}
SCSS
$custom: #2a871c;
$custom-light: #72ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#2a871c",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 112.15,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54812,
    "c": 0.16487,
    "h": 141.3
  },
  "luminance": 0.17904
}

Semantic roles & 50–950 ramp

primary
#2A871C
secondary
#AB45BA
accent
#3FE9D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2A871C

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

Preview Lab → · Contrast checker → · Palette generator →

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