#2D7E20#2D7E20

#2D7E20 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.150 H 141.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2D7E20
RGBrgb(45, 126, 32)
HSLhsl(112, 59%, 31%)
HSVhsv(112, 75%, 49%)
CMYKcmyk(64.3%, 0%, 74.6%, 50.6%)
CIE-LABlab(46.42, -42.84, 41.64)
CIE-LCHlch(46.42, 59.74, 135.81°)
OKLaboklab(52.4% -0.1171 0.0944)
OKLCHoklch(52.4% 0.15 141.1)
XYZxyz(8.8033, 15.5830, 3.9101)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E20 #71207E
analogous
#5C7E20 #2D7E20 #207E42
triadic
#2D7E20 #202D7E #7E202D
tetradic
#2D7E20 #205C7E #71207E #7E4220
square
#2D7E20 #205C7E #71207E #7E4220
split-complementary
#2D7E20 #42207E #7E205C
monochromatic
#0A1C07 #1C4D14 #2D7E20 #3EAF2C #5BD048

Accessibility & contrast

On white

5.10
#2D7E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2D7E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7E20
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7E20#FFFFFF#000000##FFFFFF
##2D7E201.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817210
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#207A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7e20;
/* rgb */ color: rgb(45, 126, 32);
/* oklch */ color: oklch(52.4% 0.150 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a462',
    500: '#2d7e20',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e20;
$custom-light: #71a462;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e20",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 111.702,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52397,
    "c": 0.15042,
    "h": 141.1
  },
  "luminance": 0.15584
}

Semantic roles & 50–950 ramp

primary
#2D7E20
secondary
#A349B1
accent
#45E3CD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2D7E20

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

Preview Lab → · Contrast checker → · Palette generator →

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