#2A791B#2A791B

#2A791B is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.149 H 140.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#2A791B
RGBrgb(42, 121, 27)
HSLhsl(110, 64%, 29%)
HSVhsv(110, 78%, 47%)
CMYKcmyk(65.3%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.58, -42.10, 41.69)
CIE-LCHlch(44.58, 59.25, 135.28°)
OKLaboklab(50.84% -0.1152 0.0938)
OKLCHoklch(50.84% 0.149 140.8)
XYZxyz(7.9897, 14.2453, 3.3653)
Luminance0.1425 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A791B #6A1B79
analogous
#59791B #2A791B #1B793B
triadic
#2A791B #1B2A79 #791B2A
tetradic
#2A791B #1B5979 #6A1B79 #793B1B
square
#2A791B #1B5979 #6A1B79 #793B1B
split-complementary
#2A791B #3B1B79 #791B59
monochromatic
#091906 #194710 #2A791B #3BAB26 #53D33B

Accessibility & contrast

On white

5.46
#2A791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A791B
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A791B#FFFFFF#000000##FFFFFF
##2A791B1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#1D7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a791b;
/* rgb */ color: rgb(42, 121, 27);
/* oklch */ color: oklch(50.8% 0.149 140.8);
Tailwind
colors: {
  custom: {
    50: '#6fa05f',
    500: '#2a791b',
    950: '#000000',
  },
}
SCSS
$custom: #2a791b;
$custom-light: #6fa05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a791b",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 110.426,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50838,
    "c": 0.14858,
    "h": 140.8
  },
  "luminance": 0.14246
}

Semantic roles & 50–950 ramp

primary
#2A791B
secondary
#9C43AD
accent
#41E7CC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A791B

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

Preview Lab → · Contrast checker → · Palette generator →

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