#2A7A40#2A7A40

#2A7A40 is a mid, moderate green. Relative luminance 0.148; OKLCH L 51.6% C 0.119 H 149.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2A7A40
RGBrgb(42, 122, 64)
HSLhsl(137, 49%, 32%)
HSVhsv(137, 66%, 48%)
CMYKcmyk(65.6%, 0%, 47.5%, 52.2%)
CIE-LABlab(45.33, -37.83, 24.73)
CIE-LCHlch(45.33, 45.20, 146.83°)
OKLaboklab(51.59% -0.1021 0.0606)
OKLCHoklch(51.59% 0.119 149.3)
XYZxyz(8.8391, 14.7806, 7.2366)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A40 #7A2A64
analogous
#3C7A2A #2A7A40 #2A7A68
triadic
#2A7A40 #402A7A #7A402A
tetradic
#2A7A40 #2A3C7A #7A2A64 #7A682A
square
#2A7A40 #2A3C7A #7A2A64 #7A682A
split-complementary
#2A7A40 #682A7A #7A2A3C
monochromatic
#0B1F10 #1A4C28 #2A7A40 #3AA858 #59C677

Accessibility & contrast

On white

5.31
#2A7A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2A7A40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A40
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A40#FFFFFF#000000##FFFFFF
##2A7A401.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703C
Deuteranopia (green-blind)
#716844
Tritanopia (blue-blind)
#0F786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a40;
/* rgb */ color: rgb(42, 122, 64);
/* oklch */ color: oklch(51.6% 0.119 149.3);
Tailwind
colors: {
  custom: {
    50: '#6da176',
    500: '#2a7a40',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a40;
$custom-light: #6da176;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a40",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 136.5,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51589,
    "c": 0.11876,
    "h": 149.3
  },
  "luminance": 0.14781
}

Semantic roles & 50–950 ramp

primary
#2A7A40
secondary
#AB5593
accent
#4FB3D8
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #2A7A40

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

Preview Lab → · Contrast checker → · Palette generator →

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