#2A7A31#2A7A31

#2A7A31 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.133 H 144.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2A7A31
RGBrgb(42, 122, 49)
HSLhsl(125, 49%, 32%)
HSVhsv(125, 66%, 48%)
CMYKcmyk(65.6%, 0%, 59.8%, 52.2%)
CIE-LABlab(45.13, -40.16, 32.44)
CIE-LCHlch(45.13, 51.63, 141.07°)
OKLaboklab(51.35% -0.1087 0.0769)
OKLCHoklch(51.35% 0.133 144.7)
XYZxyz(8.4682, 14.6322, 5.2832)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A31 #7A2A73
analogous
#4B7A2A #2A7A31 #2A7A59
triadic
#2A7A31 #312A7A #7A312A
tetradic
#2A7A31 #2A4B7A #7A2A73 #7A592A
square
#2A7A31 #2A4B7A #7A2A73 #7A592A
split-complementary
#2A7A31 #592A7A #7A2A4B
monochromatic
#0B1F0C #1A4C1F #2A7A31 #3AA843 #59C662

Accessibility & contrast

On white

5.35
#2A7A31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2A7A31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A31
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A31#FFFFFF#000000##FFFFFF
##2A7A311.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F2A
Deuteranopia (green-blind)
#726837
Tritanopia (blue-blind)
#17776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a31;
/* rgb */ color: rgb(42, 122, 49);
/* oklch */ color: oklch(51.4% 0.133 144.7);
Tailwind
colors: {
  custom: {
    50: '#6ea16b',
    500: '#2a7a31',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a31;
$custom-light: #6ea16b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a31",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 49
  },
  "hsl": {
    "h": 125.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51352,
    "c": 0.13316,
    "h": 144.7
  },
  "luminance": 0.14633
}

Semantic roles & 50–950 ramp

primary
#2A7A31
secondary
#AB55A4
accent
#4FCCD8
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7A31

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

Preview Lab → · Contrast checker → · Palette generator →

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