#2D7E21#2D7E21

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

Color values

HEX#2D7E21
RGBrgb(45, 126, 33)
HSLhsl(112, 58%, 31%)
HSVhsv(112, 74%, 49%)
CMYKcmyk(64.3%, 0%, 73.8%, 50.6%)
CIE-LABlab(46.43, -42.75, 41.25)
CIE-LCHlch(46.43, 59.41, 136.03°)
OKLaboklab(52.41% -0.1168 0.0937)
OKLCHoklch(52.41% 0.15 141.3)
XYZxyz(8.8171, 15.5886, 3.9828)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E21 #72217E
analogous
#5B7E21 #2D7E21 #217E43
triadic
#2D7E21 #212D7E #7E212D
tetradic
#2D7E21 #215B7E #72217E #7E4321
square
#2D7E21 #215B7E #72217E #7E4321
split-complementary
#2D7E21 #43217E #7E215B
monochromatic
#0A1D08 #1C4E14 #2D7E21 #3EAE2E #5BD04A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7E21#FFFFFF#000000##FFFFFF
##2D7E211.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)
#817212
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#207A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7e21;
/* rgb */ color: rgb(45, 126, 33);
/* oklch */ color: oklch(52.4% 0.150 141.3);
Tailwind
colors: {
  custom: {
    50: '#71a462',
    500: '#2d7e21',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e21;
$custom-light: #71a462;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e21",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 112.258,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52405,
    "c": 0.14976,
    "h": 141.3
  },
  "luminance": 0.15589
}

Semantic roles & 50–950 ramp

primary
#2D7E21
secondary
#A34AB1
accent
#46E2CE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2D7E21

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

Preview Lab → · Contrast checker → · Palette generator →

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