#2A971F#2A971F

#2A971F is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.3% C 0.182 H 141.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#2A971F
RGBrgb(42, 151, 31)
HSLhsl(115, 66%, 36%)
HSVhsv(115, 79%, 59%)
CMYKcmyk(72.2%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.79, -52.42, 50.26)
CIE-LCHlch(54.79, 72.62, 136.21°)
OKLaboklab(59.3% -0.1429 0.1123)
OKLCHoklch(59.3% 0.182 141.8)
XYZxyz(12.2681, 22.7230, 5.0355)
Luminance0.2272 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A971F #8C1F97
analogous
#66971F #2A971F #1F9750
triadic
#2A971F #1F2A97 #971F2A
tetradic
#2A971F #1F6697 #8C1F97 #97501F
square
#2A971F #1F6697 #8C1F97 #97501F
split-complementary
#2A971F #501F97 #971F66
monochromatic
#0E310A #1C6415 #2A971F #38CA29 #61DC54

Accessibility & contrast

On white

3.79
#2A971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#2A971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A971F
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A971F#FFFFFF#000000##000000
##2A971F1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#099281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #2a971f;
/* rgb */ color: rgb(42, 151, 31);
/* oklch */ color: oklch(59.3% 0.182 141.8);
Tailwind
colors: {
  custom: {
    50: '#75b765',
    500: '#2a971f',
    950: '#000000',
  },
}
SCSS
$custom: #2a971f;
$custom-light: #75b765;
$custom-dark: #000000;
JSON
{
  "hex": "#2a971f",
  "rgb": {
    "r": 42,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 114.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59304,
    "c": 0.18171,
    "h": 141.8
  },
  "luminance": 0.22724
}

Semantic roles & 50–950 ramp

primary
#2A971F
secondary
#B552BF
accent
#3FE9D9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2A971F

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

Preview Lab → · Contrast checker → · Palette generator →

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