#2A971C#2A971C

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

Color values

HEX#2A971C
RGBrgb(42, 151, 28)
HSLhsl(113, 69%, 35%)
HSVhsv(113, 81%, 59%)
CMYKcmyk(72.2%, 0%, 81.5%, 40.8%)
CIE-LABlab(54.77, -52.62, 51.19)
CIE-LCHlch(54.77, 73.41, 135.79°)
OKLaboklab(59.29% -0.1435 0.1138)
OKLCHoklch(59.29% 0.183 141.6)
XYZxyz(12.2304, 22.7080, 4.8369)
Luminance0.2271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A971C #891C97
analogous
#67971C #2A971C #1C974C
triadic
#2A971C #1C2A97 #971C2A
tetradic
#2A971C #1C6797 #891C97 #974C1C
square
#2A971C #1C6797 #891C97 #974C1C
split-complementary
#2A971C #4C1C97 #971C67
monochromatic
#0D3009 #1C6312 #2A971C #38CB26 #5FDE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #2a971c;
/* rgb */ color: rgb(42, 151, 28);
/* oklch */ color: oklch(59.3% 0.183 141.6);
Tailwind
colors: {
  custom: {
    50: '#75b763',
    500: '#2a971c',
    950: '#000000',
  },
}
SCSS
$custom: #2a971c;
$custom-light: #75b763;
$custom-dark: #000000;
JSON
{
  "hex": "#2a971c",
  "rgb": {
    "r": 42,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 113.171,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59286,
    "c": 0.18316,
    "h": 141.6
  },
  "luminance": 0.22709
}

Semantic roles & 50–950 ramp

primary
#2A971C
secondary
#B44EC1
accent
#3CECD8
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2A971C

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

Preview Lab → · Contrast checker → · Palette generator →

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