#2A7A1B#2A7A1B

#2A7A1B is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.150 H 140.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#2A7A1B
RGBrgb(42, 122, 27)
HSLhsl(111, 64%, 29%)
HSVhsv(111, 78%, 48%)
CMYKcmyk(65.6%, 0%, 77.9%, 52.2%)
CIE-LABlab(44.93, -42.48, 42.03)
CIE-LCHlch(44.93, 59.76, 135.30°)
OKLaboklab(51.12% -0.1162 0.0945)
OKLCHoklch(51.12% 0.15 140.9)
XYZxyz(8.1118, 14.4897, 3.4060)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A1B #6B1B7A
analogous
#5A7A1B #2A7A1B #1B7A3C
triadic
#2A7A1B #1B2A7A #7A1B2A
tetradic
#2A7A1B #1B5A7A #6B1B7A #7A3C1B
square
#2A7A1B #1B5A7A #6B1B7A #7A3C1B
split-complementary
#2A7A1B #3C1B7A #7A1B5A
monochromatic
#091906 #194810 #2A7A1B #3BAC26 #54D43C

Accessibility & contrast

On white

5.39
#2A7A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2A7A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A1B
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A1B#FFFFFF#000000##FFFFFF
##2A7A1B1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#1D7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a1b;
/* rgb */ color: rgb(42, 122, 27);
/* oklch */ color: oklch(51.1% 0.150 140.9);
Tailwind
colors: {
  custom: {
    50: '#6fa15f',
    500: '#2a7a1b',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a1b;
$custom-light: #6fa15f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a1b",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 110.526,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51123,
    "c": 0.14982,
    "h": 140.9
  },
  "luminance": 0.1449
}

Semantic roles & 50–950 ramp

primary
#2A7A1B
secondary
#9D43AE
accent
#41E7CD
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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