#2A7142#2A7142

#2A7142 is a mid, moderate green. Relative luminance 0.127; OKLCH L 49.1% C 0.103 H 151.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#2A7142
RGBrgb(42, 113, 66)
HSLhsl(140, 46%, 30%)
HSVhsv(140, 63%, 44%)
CMYKcmyk(62.8%, 0%, 41.6%, 55.7%)
CIE-LABlab(42.30, -33.62, 19.68)
CIE-LCHlch(42.30, 38.95, 149.66°)
OKLaboklab(49.11% -0.091 0.0489)
OKLCHoklch(49.11% 0.103 151.7)
XYZxyz(7.8427, 12.6951, 7.1903)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7142 #712A59
analogous
#35712A #2A7142 #2A7165
triadic
#2A7142 #422A71 #71422A
tetradic
#2A7142 #2A3571 #712A59 #71652A
square
#2A7142 #2A3571 #712A59 #71652A
split-complementary
#2A7142 #652A71 #712A35
monochromatic
#09180E #194428 #2A7142 #3B9E5C #55C079

Accessibility & contrast

On white

5.93
#2A7142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2A7142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7142
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7142#FFFFFF#000000##FFFFFF
##2A71421.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71683F
Deuteranopia (green-blind)
#686145
Tritanopia (blue-blind)
#136F65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7142;
/* rgb */ color: rgb(42, 113, 66);
/* oklch */ color: oklch(49.1% 0.103 151.7);
Tailwind
colors: {
  custom: {
    50: '#6b9a77',
    500: '#2a7142',
    950: '#000000',
  },
}
SCSS
$custom: #2a7142;
$custom-light: #6b9a77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7142",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 66
  },
  "hsl": {
    "h": 140.282,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.49106,
    "c": 0.10329,
    "h": 151.7
  },
  "luminance": 0.12696
}

Semantic roles & 50–950 ramp

primary
#2A7142
secondary
#A35488
accent
#52A9D5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2A7142

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

Preview Lab → · Contrast checker → · Palette generator →

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