#2D8517#2D8517

#2D8517 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.3% C 0.164 H 140.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#2D8517
RGBrgb(45, 133, 23)
HSLhsl(108, 71%, 31%)
HSVhsv(108, 83%, 52%)
CMYKcmyk(66.2%, 0%, 82.7%, 47.8%)
CIE-LABlab(48.75, -46.06, 47.09)
CIE-LCHlch(48.75, 65.87, 134.37°)
OKLaboklab(54.31% -0.1263 0.1045)
OKLCHoklch(54.31% 0.164 140.4)
XYZxyz(9.6239, 17.3939, 3.6606)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8517 #6F1785
analogous
#648517 #2D8517 #178538
triadic
#2D8517 #172D85 #85172D
tetradic
#2D8517 #176485 #6F1785 #853817
square
#2D8517 #176485 #6F1785 #853817
split-complementary
#2D8517 #381785 #851764
monochromatic
#0A1D05 #1B510E #2D8517 #3FB920 #5ADD3A

Accessibility & contrast

On white

4.69
#2D8517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#2D8517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8517
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8517#FFFFFF#000000##FFFFFF
##2D85171.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#1F8071
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2d8517;
/* rgb */ color: rgb(45, 133, 23);
/* oklch */ color: oklch(54.3% 0.164 140.4);
Tailwind
colors: {
  custom: {
    50: '#73a95f',
    500: '#2d8517',
    950: '#000000',
  },
}
SCSS
$custom: #2d8517;
$custom-light: #73a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8517",
  "rgb": {
    "r": 45,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 108,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54308,
    "c": 0.1639,
    "h": 140.4
  },
  "luminance": 0.17395
}

Semantic roles & 50–950 ramp

primary
#2D8517
secondary
#A13FB9
accent
#3BEDCA
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2D8517

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

Preview Lab → · Contrast checker → · Palette generator →

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