#2D7A42#2D7A42

#2D7A42 is a mid, moderate green. Relative luminance 0.149; OKLCH L 51.7% C 0.115 H 149.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2D7A42
RGBrgb(45, 122, 66)
HSLhsl(136, 46%, 33%)
HSVhsv(136, 63%, 48%)
CMYKcmyk(63.1%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.45, -36.79, 23.80)
CIE-LCHlch(45.45, 43.82, 147.10°)
OKLaboklab(51.73% -0.0994 0.0585)
OKLCHoklch(51.73% 0.115 149.5)
XYZxyz(9.0244, 14.8694, 7.5477)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7A42 #7A2D65
analogous
#3E7A2D #2D7A42 #2D7A69
triadic
#2D7A42 #422D7A #7A422D
tetradic
#2D7A42 #2D3E7A #7A2D65 #7A692D
square
#2D7A42 #2D3E7A #7A2D65 #7A692D
split-complementary
#2D7A42 #692D7A #7A2D3E
monochromatic
#0C2112 #1D4D2A #2D7A42 #3DA75A #5EC47A

Accessibility & contrast

On white

5.28
#2D7A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2D7A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7A42
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7A42#FFFFFF#000000##FFFFFF
##2D7A421.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#16786C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7a42;
/* rgb */ color: rgb(45, 122, 66);
/* oklch */ color: oklch(51.7% 0.115 149.5);
Tailwind
colors: {
  custom: {
    50: '#6fa177',
    500: '#2d7a42',
    950: '#000000',
  },
}
SCSS
$custom: #2d7a42;
$custom-light: #6fa177;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7a42",
  "rgb": {
    "r": 45,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 136.364,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.51726,
    "c": 0.11536,
    "h": 149.5
  },
  "luminance": 0.1487
}

Semantic roles & 50–950 ramp

primary
#2D7A42
secondary
#AA5994
accent
#52B2D6
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2D7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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