#2D7D21#2D7D21

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

Color values

HEX#2D7D21
RGBrgb(45, 125, 33)
HSLhsl(112, 58%, 31%)
HSVhsv(112, 74%, 49%)
CMYKcmyk(64%, 0%, 73.6%, 51%)
CIE-LABlab(46.09, -42.37, 40.89)
CIE-LCHlch(46.09, 58.89, 136.02°)
OKLaboklab(52.12% -0.1158 0.093)
OKLCHoklch(52.12% 0.149 141.2)
XYZxyz(8.6899, 15.3341, 3.9404)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D21 #71217D
analogous
#5B7D21 #2D7D21 #217D43
triadic
#2D7D21 #212D7D #7D212D
tetradic
#2D7D21 #215B7D #71217D #7D4321
square
#2D7D21 #215B7D #71217D #7D4321
split-complementary
#2D7D21 #43217D #7D215B
monochromatic
#0A1C07 #1C4D14 #2D7D21 #3EAD2E #5BCF49

Accessibility & contrast

On white

5.16
#2D7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D7D21
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7D21#FFFFFF#000000##FFFFFF
##2D7D211.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#766B2A
Tritanopia (blue-blind)
#20796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7d21;
/* rgb */ color: rgb(45, 125, 33);
/* oklch */ color: oklch(52.1% 0.149 141.2);
Tailwind
colors: {
  custom: {
    50: '#71a362',
    500: '#2d7d21',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d21;
$custom-light: #71a362;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d21",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 112.174,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52123,
    "c": 0.14851,
    "h": 141.2
  },
  "luminance": 0.15335
}

Semantic roles & 50–950 ramp

primary
#2D7D21
secondary
#A34AB0
accent
#46E1CD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2D7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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