#2A7A42#2A7A42

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

Color values

HEX#2A7A42
RGBrgb(42, 122, 66)
HSLhsl(138, 49%, 32%)
HSVhsv(138, 66%, 48%)
CMYKcmyk(65.6%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.36, -37.48, 23.66)
CIE-LCHlch(45.36, 44.32, 147.73°)
OKLaboklab(51.63% -0.1012 0.0582)
OKLCHoklch(51.63% 0.117 150.1)
XYZxyz(8.8971, 14.8038, 7.5417)
Luminance0.1480 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A42 #7A2A62
analogous
#3A7A2A #2A7A42 #2A7A6A
triadic
#2A7A42 #422A7A #7A422A
tetradic
#2A7A42 #2A3A7A #7A2A62 #7A6A2A
square
#2A7A42 #2A3A7A #7A2A62 #7A6A2A
split-complementary
#2A7A42 #6A2A7A #7A2A3A
monochromatic
#0B1F11 #1A4C29 #2A7A42 #3AA85B #59C679

Accessibility & contrast

On white

5.30
#2A7A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7A42
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A42#FFFFFF#000000##FFFFFF
##2A7A421.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#0E786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a42;
/* rgb */ color: rgb(42, 122, 66);
/* oklch */ color: oklch(51.6% 0.117 150.1);
Tailwind
colors: {
  custom: {
    50: '#6da177',
    500: '#2a7a42',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a42;
$custom-light: #6da177;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a42",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 138,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51625,
    "c": 0.11673,
    "h": 150.1
  },
  "luminance": 0.14805
}

Semantic roles & 50–950 ramp

primary
#2A7A42
secondary
#AB5591
accent
#4FAFD8
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #2A7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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