#2A7342#2A7342

#2A7342 is a mid, moderate green. Relative luminance 0.131; OKLCH L 49.7% C 0.106 H 151.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2A7342
RGBrgb(42, 115, 66)
HSLhsl(140, 46%, 31%)
HSVhsv(140, 63%, 45%)
CMYKcmyk(63.5%, 0%, 42.6%, 54.9%)
CIE-LABlab(42.98, -34.49, 20.57)
CIE-LCHlch(42.98, 40.16, 149.18°)
OKLaboklab(49.67% -0.0933 0.051)
OKLCHoklch(49.67% 0.106 151.3)
XYZxyz(8.0683, 13.1463, 7.2655)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7342 #732A5B
analogous
#36732A #2A7342 #2A7366
triadic
#2A7342 #422A73 #73422A
tetradic
#2A7342 #2A3673 #732A5B #73662A
square
#2A7342 #2A3673 #732A5B #73662A
split-complementary
#2A7342 #662A73 #732A36
monochromatic
#09190F #1A4628 #2A7342 #3AA05C #56C179

Accessibility & contrast

On white

5.79
#2A7342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2A7342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7342
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7342#FFFFFF#000000##FFFFFF
##2A73421.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736A3F
Deuteranopia (green-blind)
#6A6345
Tritanopia (blue-blind)
#127167
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7342;
/* rgb */ color: rgb(42, 115, 66);
/* oklch */ color: oklch(49.7% 0.106 151.3);
Tailwind
colors: {
  custom: {
    50: '#6c9c77',
    500: '#2a7342',
    950: '#000000',
  },
}
SCSS
$custom: #2a7342;
$custom-light: #6c9c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7342",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 66
  },
  "hsl": {
    "h": 139.726,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49667,
    "c": 0.10632,
    "h": 151.3
  },
  "luminance": 0.13147
}

Semantic roles & 50–950 ramp

primary
#2A7342
secondary
#A5548A
accent
#52ABD6
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2A7342

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

Preview Lab → · Contrast checker → · Palette generator →

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