#2A871F#2A871F

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

Color values

HEX#2A871F
RGBrgb(42, 135, 31)
HSLhsl(114, 63%, 33%)
HSVhsv(114, 77%, 53%)
CMYKcmyk(68.9%, 0%, 77%, 47.1%)
CIE-LABlab(49.40, -46.90, 44.99)
CIE-LCHlch(49.40, 64.99, 136.19°)
OKLaboklab(54.83% -0.1279 0.1013)
OKLCHoklch(54.83% 0.163 141.6)
XYZxyz(9.8656, 17.9181, 4.2347)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A871F #7C1F87
analogous
#5E871F #2A871F #1F8748
triadic
#2A871F #1F2A87 #871F2A
tetradic
#2A871F #1F5E87 #7C1F87 #87481F
square
#2A871F #1F5E87 #7C1F87 #87481F
split-complementary
#2A871F #481F87 #871F5E
monochromatic
#0B2308 #1B5514 #2A871F #39B92A #59D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A871F#FFFFFF#000000##000000
##2A871F1.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)
#8A7A09
Deuteranopia (green-blind)
#7F732A
Tritanopia (blue-blind)
#168373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a871f;
/* rgb */ color: rgb(42, 135, 31);
/* oklch */ color: oklch(54.8% 0.163 141.6);
Tailwind
colors: {
  custom: {
    50: '#72ab62',
    500: '#2a871f',
    950: '#000000',
  },
}
SCSS
$custom: #2a871f;
$custom-light: #72ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a871f",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 113.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54834,
    "c": 0.16319,
    "h": 141.6
  },
  "luminance": 0.17919
}

Semantic roles & 50–950 ramp

primary
#2A871F
secondary
#AD4AB8
accent
#42E6D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2A871F

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

Preview Lab → · Contrast checker → · Palette generator →

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