#2A971A#2A971A

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

Color values

HEX#2A971A
RGBrgb(42, 151, 26)
HSLhsl(112, 71%, 35%)
HSVhsv(112, 83%, 59%)
CMYKcmyk(72.2%, 0%, 82.8%, 40.8%)
CIE-LABlab(54.76, -52.73, 51.77)
CIE-LCHlch(54.76, 73.90, 135.53°)
OKLaboklab(59.28% -0.1439 0.1147)
OKLCHoklch(59.28% 0.184 141.4)
XYZxyz(12.2072, 22.6987, 4.7150)
Luminance0.2270 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A971A #871A97
analogous
#69971A #2A971A #1A9749
triadic
#2A971A #1A2A97 #971A2A
tetradic
#2A971A #1A6997 #871A97 #97491A
square
#2A971A #1A6997 #871A97 #97491A
split-complementary
#2A971A #491A97 #971A69
monochromatic
#0D2F08 #1B6311 #2A971A #39CB23 #5EE04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A971A#FFFFFF#000000##000000
##2A971A1.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)
#8E802A
Tritanopia (blue-blind)
#0B9280
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #2a971a;
/* rgb */ color: rgb(42, 151, 26);
/* oklch */ color: oklch(59.3% 0.184 141.4);
Tailwind
colors: {
  custom: {
    50: '#75b763',
    500: '#2a971a',
    950: '#000000',
  },
}
SCSS
$custom: #2a971a;
$custom-light: #75b763;
$custom-dark: #000000;
JSON
{
  "hex": "#2a971a",
  "rgb": {
    "r": 42,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 112.32,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59275,
    "c": 0.18406,
    "h": 141.4
  },
  "luminance": 0.227
}

Semantic roles & 50–950 ramp

primary
#2A971A
secondary
#B34BC2
accent
#3AEDD6
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2A971A

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

Preview Lab → · Contrast checker → · Palette generator →

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