#2D7D22#2D7D22

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

Color values

HEX#2D7D22
RGBrgb(45, 125, 34)
HSLhsl(113, 57%, 31%)
HSVhsv(113, 73%, 49%)
CMYKcmyk(64%, 0%, 72.8%, 51%)
CIE-LABlab(46.10, -42.28, 40.49)
CIE-LCHlch(46.10, 58.55, 136.24°)
OKLaboklab(52.13% -0.1155 0.0923)
OKLCHoklch(52.13% 0.148 141.4)
XYZxyz(8.7041, 15.3398, 4.0152)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D22 #72227D
analogous
#5A7D22 #2D7D22 #227D44
triadic
#2D7D22 #222D7D #7D222D
tetradic
#2D7D22 #225A7D #72227D #7D4422
square
#2D7D22 #225A7D #72227D #7D4422
split-complementary
#2D7D22 #44227D #7D225A
monochromatic
#0A1D08 #1C4D15 #2D7D22 #3EAD2F #5BCE4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7D22#FFFFFF#000000##FFFFFF
##2D7D221.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)
#807114
Deuteranopia (green-blind)
#766B2B
Tritanopia (blue-blind)
#20796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7d22;
/* rgb */ color: rgb(45, 125, 34);
/* oklch */ color: oklch(52.1% 0.148 141.4);
Tailwind
colors: {
  custom: {
    50: '#71a363',
    500: '#2d7d22',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d22;
$custom-light: #71a363;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d22",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 112.747,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52132,
    "c": 0.14783,
    "h": 141.4
  },
  "luminance": 0.15341
}

Semantic roles & 50–950 ramp

primary
#2D7D22
secondary
#A34BB0
accent
#47E0CE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2D7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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