#2D7940#2D7940

#2D7940 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.4% C 0.116 H 148.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2D7940
RGBrgb(45, 121, 64)
HSLhsl(135, 46%, 33%)
HSVhsv(135, 63%, 47%)
CMYKcmyk(62.8%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.08, -36.72, 24.43)
CIE-LCHlch(45.08, 44.11, 146.36°)
OKLaboklab(51.41% -0.0992 0.0599)
OKLCHoklch(51.41% 0.116 148.9)
XYZxyz(8.8443, 14.6019, 7.2019)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7940 #792D66
analogous
#40792D #2D7940 #2D7966
triadic
#2D7940 #402D79 #79402D
tetradic
#2D7940 #2D4079 #792D66 #79662D
square
#2D7940 #2D4079 #792D66 #79662D
split-complementary
#2D7940 #662D79 #792D40
monochromatic
#0C2011 #1C4C28 #2D7940 #3EA658 #5DC377

Accessibility & contrast

On white

5.36
#2D7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2D7940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7940
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7940#FFFFFF#000000##FFFFFF
##2D79401.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#706844
Tritanopia (blue-blind)
#18776B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7940;
/* rgb */ color: rgb(45, 121, 64);
/* oklch */ color: oklch(51.4% 0.116 148.9);
Tailwind
colors: {
  custom: {
    50: '#6ea076',
    500: '#2d7940',
    950: '#000000',
  },
}
SCSS
$custom: #2d7940;
$custom-light: #6ea076;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7940",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 135,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5141,
    "c": 0.11591,
    "h": 148.9
  },
  "luminance": 0.14603
}

Semantic roles & 50–950 ramp

primary
#2D7940
secondary
#A95895
accent
#52B5D5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2D7940

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

Preview Lab → · Contrast checker → · Palette generator →

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