#2D7F20#2D7F20

#2D7F20 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.152 H 141.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2D7F20
RGBrgb(45, 127, 32)
HSLhsl(112, 60%, 31%)
HSVhsv(112, 75%, 50%)
CMYKcmyk(64.6%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.76, -43.21, 41.99)
CIE-LCHlch(46.76, 60.25, 135.82°)
OKLaboklab(52.68% -0.1181 0.0952)
OKLCHoklch(52.68% 0.152 141.1)
XYZxyz(8.9318, 15.8401, 3.9530)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F20 #72207F
analogous
#5C7F20 #2D7F20 #207F42
triadic
#2D7F20 #202D7F #7F202D
tetradic
#2D7F20 #205C7F #72207F #7F4220
square
#2D7F20 #205C7F #72207F #7F4220
split-complementary
#2D7F20 #42207F #7F205C
monochromatic
#0A1D07 #1C4E14 #2D7F20 #3EB02C #5BD148

Accessibility & contrast

On white

5.04
#2D7F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2D7F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F20
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F20#FFFFFF#000000##FFFFFF
##2D7F201.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#207B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f20;
/* rgb */ color: rgb(45, 127, 32);
/* oklch */ color: oklch(52.7% 0.152 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a562',
    500: '#2d7f20',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f20;
$custom-light: #71a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f20",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 111.789,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52679,
    "c": 0.15167,
    "h": 141.1
  },
  "luminance": 0.15841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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