#2A971D#2A971D

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

Color values

HEX#2A971D
RGBrgb(42, 151, 29)
HSLhsl(114, 68%, 35%)
HSVhsv(114, 81%, 59%)
CMYKcmyk(72.2%, 0%, 80.8%, 40.8%)
CIE-LABlab(54.78, -52.55, 50.88)
CIE-LCHlch(54.78, 73.15, 135.93°)
OKLaboklab(59.29% -0.1433 0.1133)
OKLCHoklch(59.29% 0.183 141.7)
XYZxyz(12.2425, 22.7128, 4.9010)
Luminance0.2271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A971D #8A1D97
analogous
#67971D #2A971D #1D974D
triadic
#2A971D #1D2A97 #971D2A
tetradic
#2A971D #1D6797 #8A1D97 #974D1D
square
#2A971D #1D6797 #8A1D97 #974D1D
split-complementary
#2A971D #4D1D97 #971D67
monochromatic
#0D3009 #1C6413 #2A971D #38CA27 #60DE51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A971D#FFFFFF#000000##000000
##2A971D1.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)
#8E802C
Tritanopia (blue-blind)
#0A9281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #2a971d;
/* rgb */ color: rgb(42, 151, 29);
/* oklch */ color: oklch(59.3% 0.183 141.7);
Tailwind
colors: {
  custom: {
    50: '#75b764',
    500: '#2a971d',
    950: '#000000',
  },
}
SCSS
$custom: #2a971d;
$custom-light: #75b764;
$custom-dark: #000000;
JSON
{
  "hex": "#2a971d",
  "rgb": {
    "r": 42,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 113.607,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59292,
    "c": 0.18269,
    "h": 141.7
  },
  "luminance": 0.22714
}

Semantic roles & 50–950 ramp

primary
#2A971D
secondary
#B44FC0
accent
#3DEBD8
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2A971D

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

Preview Lab → · Contrast checker → · Palette generator →

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