#2A7040#2A7040

#2A7040 is a mid, moderate green. Relative luminance 0.125; OKLCH L 48.8% C 0.104 H 151.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#2A7040
RGBrgb(42, 112, 64)
HSLhsl(139, 45%, 30%)
HSVhsv(139, 63%, 44%)
CMYKcmyk(62.5%, 0%, 42.9%, 56.1%)
CIE-LABlab(41.92, -33.56, 20.33)
CIE-LCHlch(41.92, 39.24, 148.80°)
OKLaboklab(48.78% -0.0908 0.0504)
OKLCHoklch(48.78% 0.104 151)
XYZxyz(7.6739, 12.4500, 6.8482)
Luminance0.1245 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7040 #702A5A
analogous
#37702A #2A7040 #2A7063
triadic
#2A7040 #402A70 #70402A
tetradic
#2A7040 #2A3770 #702A5A #70632A
square
#2A7040 #2A3770 #702A5A #70632A
split-complementary
#2A7040 #632A70 #702A37
monochromatic
#09170D #194327 #2A7040 #3B9D59 #55BF76

Accessibility & contrast

On white

6.02
#2A7040 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2A7040 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7040
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7040#FFFFFF#000000##FFFFFF
##2A70401.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70673D
Deuteranopia (green-blind)
#676043
Tritanopia (blue-blind)
#156E64
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7040;
/* rgb */ color: rgb(42, 112, 64);
/* oklch */ color: oklch(48.8% 0.104 151.0);
Tailwind
colors: {
  custom: {
    50: '#6b9a75',
    500: '#2a7040',
    950: '#000000',
  },
}
SCSS
$custom: #2a7040;
$custom-light: #6b9a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7040",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 64
  },
  "hsl": {
    "h": 138.857,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.48784,
    "c": 0.10385,
    "h": 151
  },
  "luminance": 0.12451
}

Semantic roles & 50–950 ramp

primary
#2A7040
secondary
#A25489
accent
#53ACD5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2A7040

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

Preview Lab → · Contrast checker → · Palette generator →

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