#2A791C#2A791C

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

Color values

HEX#2A791C
RGBrgb(42, 121, 28)
HSLhsl(111, 62%, 29%)
HSVhsv(111, 77%, 47%)
CMYKcmyk(65.3%, 0%, 76.9%, 52.5%)
CIE-LABlab(44.59, -42.03, 41.32)
CIE-LCHlch(44.59, 58.93, 135.49°)
OKLaboklab(50.85% -0.1149 0.0932)
OKLCHoklch(50.85% 0.148 141)
XYZxyz(8.0014, 14.2501, 3.4273)
Luminance0.1425 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A791C #6B1C79
analogous
#59791C #2A791C #1C793D
triadic
#2A791C #1C2A79 #791C2A
tetradic
#2A791C #1C5979 #6B1C79 #793D1C
square
#2A791C #1C5979 #6B1C79 #793D1C
split-complementary
#2A791C #3D1C79 #791C59
monochromatic
#091906 #194710 #2A791C #3BAB28 #54D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A791C#FFFFFF#000000##FFFFFF
##2A791C1.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)
#7C6D0A
Deuteranopia (green-blind)
#736726
Tritanopia (blue-blind)
#1D7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a791c;
/* rgb */ color: rgb(42, 121, 28);
/* oklch */ color: oklch(50.8% 0.148 141.0);
Tailwind
colors: {
  custom: {
    50: '#6fa05f',
    500: '#2a791c',
    950: '#000000',
  },
}
SCSS
$custom: #2a791c;
$custom-light: #6fa05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a791c",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 110.968,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50846,
    "c": 0.14798,
    "h": 141
  },
  "luminance": 0.14251
}

Semantic roles & 50–950 ramp

primary
#2A791C
secondary
#9D44AD
accent
#42E5CD
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A791C

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

Preview Lab → · Contrast checker → · Palette generator →

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