#2D7D17#2D7D17

#2D7D17 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.154 H 140.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2D7D17
RGBrgb(45, 125, 23)
HSLhsl(107, 69%, 29%)
HSVhsv(107, 82%, 49%)
CMYKcmyk(64%, 0%, 81.6%, 51%)
CIE-LABlab(46.02, -43.13, 44.52)
CIE-LCHlch(46.02, 61.99, 134.09°)
OKLaboklab(52.05% -0.1184 0.0991)
OKLCHoklch(52.05% 0.154 140.1)
XYZxyz(8.5701, 15.2862, 3.3093)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D17 #67177D
analogous
#607D17 #2D7D17 #177D34
triadic
#2D7D17 #172D7D #7D172D
tetradic
#2D7D17 #17607D #67177D #7D3417
square
#2D7D17 #17607D #67177D #7D3417
split-complementary
#2D7D17 #34177D #7D1760
monochromatic
#091A05 #1A490D #2D7D17 #40B121 #58DA35

Accessibility & contrast

On white

5.18
#2D7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2D7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7D17
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7D17#FFFFFF#000000##FFFFFF
##2D7D171.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776B23
Tritanopia (blue-blind)
#22796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7d17;
/* rgb */ color: rgb(45, 125, 23);
/* oklch */ color: oklch(52.0% 0.154 140.1);
Tailwind
colors: {
  custom: {
    50: '#71a35d',
    500: '#2d7d17',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d17;
$custom-light: #71a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d17",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 107.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52049,
    "c": 0.15441,
    "h": 140.1
  },
  "luminance": 0.15287
}

Semantic roles & 50–950 ramp

primary
#2D7D17
secondary
#993EB2
accent
#3CECC6
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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