#2A7D31#2A7D31

#2A7D31 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.137 H 144.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2A7D31
RGBrgb(42, 125, 49)
HSLhsl(125, 50%, 33%)
HSVhsv(125, 66%, 49%)
CMYKcmyk(66.4%, 0%, 60.8%, 51%)
CIE-LABlab(46.15, -41.33, 33.64)
CIE-LCHlch(46.15, 53.29, 140.86°)
OKLaboklab(52.2% -0.1119 0.0795)
OKLCHoklch(52.2% 0.137 144.6)
XYZxyz(8.8423, 15.3803, 5.4079)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D31 #7D2A76
analogous
#4D7D2A #2A7D31 #2A7D5A
triadic
#2A7D31 #312A7D #7D312A
tetradic
#2A7D31 #2A4D7D #7D2A76 #7D5A2A
square
#2A7D31 #2A4D7D #7D2A76 #7D5A2A
split-complementary
#2A7D31 #5A2A7D #7D2A4D
monochromatic
#0B210D #1B4F1F #2A7D31 #39AB43 #5AC863

Accessibility & contrast

On white

5.15
#2A7D31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#2A7D31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D31
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D31#FFFFFF#000000##FFFFFF
##2A7D311.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7229
Deuteranopia (green-blind)
#756B37
Tritanopia (blue-blind)
#167A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d31;
/* rgb */ color: rgb(42, 125, 49);
/* oklch */ color: oklch(52.2% 0.137 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ea36c',
    500: '#2a7d31',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d31;
$custom-light: #6ea36c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d31",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 125.06,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52198,
    "c": 0.13725,
    "h": 144.6
  },
  "luminance": 0.15381
}

Semantic roles & 50–950 ramp

primary
#2A7D31
secondary
#AD56A6
accent
#4FCED9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7D31

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

Preview Lab → · Contrast checker → · Palette generator →

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