#2D7D20#2D7D20

#2D7D20 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.149 H 141.1°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2D7D20
RGBrgb(45, 125, 32)
HSLhsl(112, 59%, 31%)
HSVhsv(112, 74%, 49%)
CMYKcmyk(64%, 0%, 74.4%, 51%)
CIE-LABlab(46.08, -42.46, 41.29)
CIE-LCHlch(46.08, 59.23, 135.80°)
OKLaboklab(52.11% -0.1161 0.0937)
OKLCHoklch(52.11% 0.149 141.1)
XYZxyz(8.6761, 15.3286, 3.8677)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D20 #70207D
analogous
#5B7D20 #2D7D20 #207D41
triadic
#2D7D20 #202D7D #7D202D
tetradic
#2D7D20 #205B7D #70207D #7D4120
square
#2D7D20 #205B7D #70207D #7D4120
split-complementary
#2D7D20 #41207D #7D205B
monochromatic
#0A1C07 #1B4C14 #2D7D20 #3FAE2C #5AD047

Accessibility & contrast

On white

5.17
#2D7D20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2D7D20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7D20
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7D20#FFFFFF#000000##FFFFFF
##2D7D201.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#20796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7d20;
/* rgb */ color: rgb(45, 125, 32);
/* oklch */ color: oklch(52.1% 0.149 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a362',
    500: '#2d7d20',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d20;
$custom-light: #71a362;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d20",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 111.613,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52114,
    "c": 0.14916,
    "h": 141.1
  },
  "luminance": 0.15329
}

Semantic roles & 50–950 ramp

primary
#2D7D20
secondary
#A249B0
accent
#45E2CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2D7D20

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

Preview Lab → · Contrast checker → · Palette generator →

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