#2A871B#2A871B

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

Color values

HEX#2A871B
RGBrgb(42, 135, 27)
HSLhsl(112, 67%, 32%)
HSVhsv(112, 80%, 53%)
CMYKcmyk(68.9%, 0%, 80%, 47.1%)
CIE-LABlab(49.37, -47.19, 46.37)
CIE-LCHlch(49.37, 66.16, 135.50°)
OKLaboklab(54.81% -0.1289 0.1036)
OKLCHoklch(54.81% 0.165 141.2)
XYZxyz(9.8161, 17.8983, 3.9741)
Luminance0.1790 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A871B #781B87
analogous
#60871B #2A871B #1B8742
triadic
#2A871B #1B2A87 #871B2A
tetradic
#2A871B #1B6087 #781B87 #87421B
square
#2A871B #1B6087 #781B87 #87421B
split-complementary
#2A871B #421B87 #871B60
monochromatic
#0A2107 #1A5411 #2A871B #3ABA25 #58D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A871B#FFFFFF#000000##FFFFFF
##2A871B1.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: #2a871b;
/* rgb */ color: rgb(42, 135, 27);
/* oklch */ color: oklch(54.8% 0.165 141.2);
Tailwind
colors: {
  custom: {
    50: '#72ab61',
    500: '#2a871b',
    950: '#000000',
  },
}
SCSS
$custom: #2a871b;
$custom-light: #72ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#2a871b",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 111.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54806,
    "c": 0.16539,
    "h": 141.2
  },
  "luminance": 0.17899
}

Semantic roles & 50–950 ramp

primary
#2A871B
secondary
#AA44BA
accent
#3EEAD2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A871B

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

Preview Lab → · Contrast checker → · Palette generator →

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