#2A7D42#2A7D42

#2A7D42 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.121 H 149.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2A7D42
RGBrgb(42, 125, 66)
HSLhsl(137, 50%, 33%)
HSVhsv(137, 66%, 49%)
CMYKcmyk(66.4%, 0%, 47.2%, 51%)
CIE-LABlab(46.38, -38.72, 24.97)
CIE-LCHlch(46.38, 46.07, 147.19°)
OKLaboklab(52.46% -0.1045 0.0612)
OKLCHoklch(52.46% 0.121 149.6)
XYZxyz(9.2711, 15.5519, 7.6664)
Luminance0.1555 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D42 #7D2A65
analogous
#3C7D2A #2A7D42 #2A7D6B
triadic
#2A7D42 #422A7D #7D422A
tetradic
#2A7D42 #2A3C7D #7D2A65 #7D6B2A
square
#2A7D42 #2A3C7D #7D2A65 #7D6B2A
split-complementary
#2A7D42 #6B2A7D #7D2A3C
monochromatic
#0B2112 #1B4F2A #2A7D42 #39AB5A #5AC87A

Accessibility & contrast

On white

5.11
#2A7D42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2A7D42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D42
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D42#FFFFFF#000000##FFFFFF
##2A7D421.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723D
Deuteranopia (green-blind)
#736B46
Tritanopia (blue-blind)
#0C7B6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7d42;
/* rgb */ color: rgb(42, 125, 66);
/* oklch */ color: oklch(52.5% 0.121 149.6);
Tailwind
colors: {
  custom: {
    50: '#6ea377',
    500: '#2a7d42',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d42;
$custom-light: #6ea377;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d42",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 66
  },
  "hsl": {
    "h": 137.349,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52463,
    "c": 0.1211,
    "h": 149.6
  },
  "luminance": 0.15553
}

Semantic roles & 50–950 ramp

primary
#2A7D42
secondary
#AD5694
accent
#4FB1D9
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2A7D42

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

Preview Lab → · Contrast checker → · Palette generator →

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