#2A971B#2A971B

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

Color values

HEX#2A971B
RGBrgb(42, 151, 27)
HSLhsl(113, 70%, 35%)
HSVhsv(113, 82%, 59%)
CMYKcmyk(72.2%, 0%, 82.1%, 40.8%)
CIE-LABlab(54.77, -52.68, 51.48)
CIE-LCHlch(54.77, 73.66, 135.66°)
OKLaboklab(59.28% -0.1437 0.1143)
OKLCHoklch(59.28% 0.184 141.5)
XYZxyz(12.2186, 22.7033, 4.7749)
Luminance0.2271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A971B #881B97
analogous
#68971B #2A971B #1B974A
triadic
#2A971B #1B2A97 #971B2A
tetradic
#2A971B #1B6897 #881B97 #974A1B
square
#2A971B #1B6897 #881B97 #974A1B
split-complementary
#2A971B #4A1B97 #971B68
monochromatic
#0D2F08 #1C6312 #2A971B #38CB24 #5FDF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A971B#FFFFFF#000000##000000
##2A971B1.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: #2a971b;
/* rgb */ color: rgb(42, 151, 27);
/* oklch */ color: oklch(59.3% 0.184 141.5);
Tailwind
colors: {
  custom: {
    50: '#75b763',
    500: '#2a971b',
    950: '#000000',
  },
}
SCSS
$custom: #2a971b;
$custom-light: #75b763;
$custom-dark: #000000;
JSON
{
  "hex": "#2a971b",
  "rgb": {
    "r": 42,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 112.742,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59281,
    "c": 0.18362,
    "h": 141.5
  },
  "luminance": 0.22705
}

Semantic roles & 50–950 ramp

primary
#2A971B
secondary
#B34CC1
accent
#3BECD7
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2A971B

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

Preview Lab → · Contrast checker → · Palette generator →

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