#2A791F#2A791F

#2A791F is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.146 H 141.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#2A791F
RGBrgb(42, 121, 31)
HSLhsl(113, 59%, 30%)
HSVhsv(113, 74%, 47%)
CMYKcmyk(65.3%, 0%, 74.4%, 52.5%)
CIE-LABlab(44.61, -41.77, 40.16)
CIE-LCHlch(44.61, 57.94, 136.13°)
OKLaboklab(50.87% -0.1141 0.0912)
OKLCHoklch(50.87% 0.146 141.4)
XYZxyz(8.0391, 14.2651, 3.6259)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A791F #6E1F79
analogous
#57791F #2A791F #1F7941
triadic
#2A791F #1F2A79 #791F2A
tetradic
#2A791F #1F5779 #6E1F79 #79411F
square
#2A791F #1F5779 #6E1F79 #79411F
split-complementary
#2A791F #411F79 #791F57
monochromatic
#081806 #194813 #2A791F #3BAA2B #54CF43

Accessibility & contrast

On white

5.45
#2A791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#2A791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A791F
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A791F#FFFFFF#000000##FFFFFF
##2A791F1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D10
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#1C7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a791f;
/* rgb */ color: rgb(42, 121, 31);
/* oklch */ color: oklch(50.9% 0.146 141.4);
Tailwind
colors: {
  custom: {
    50: '#6fa061',
    500: '#2a791f',
    950: '#000000',
  },
}
SCSS
$custom: #2a791f;
$custom-light: #6fa061;
$custom-dark: #000000;
JSON
{
  "hex": "#2a791f",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 112.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5087,
    "c": 0.14605,
    "h": 141.4
  },
  "luminance": 0.14266
}

Semantic roles & 50–950 ramp

primary
#2A791F
secondary
#A047AC
accent
#45E2CF
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A791F

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

Preview Lab → · Contrast checker → · Palette generator →

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