#2D7E17#2D7E17

#2D7E17 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.156 H 140.1°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2D7E17
RGBrgb(45, 126, 23)
HSLhsl(107, 69%, 29%)
HSVhsv(107, 82%, 49%)
CMYKcmyk(64.3%, 0%, 81.7%, 50.6%)
CIE-LABlab(46.37, -43.51, 44.85)
CIE-LCHlch(46.37, 62.48, 134.13°)
OKLaboklab(52.33% -0.1194 0.0998)
OKLCHoklch(52.33% 0.156 140.1)
XYZxyz(8.6973, 15.5406, 3.3518)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E17 #68177E
analogous
#617E17 #2D7E17 #177E34
triadic
#2D7E17 #172D7E #7E172D
tetradic
#2D7E17 #17617E #68177E #7E3417
square
#2D7E17 #17617E #68177E #7E3417
split-complementary
#2D7E17 #34177E #7E1761
monochromatic
#091A05 #1B4A0E #2D7E17 #3FB220 #58DA35

Accessibility & contrast

On white

5.11
#2D7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2D7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7E17
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7E17#FFFFFF#000000##FFFFFF
##2D7E171.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786B23
Tritanopia (blue-blind)
#217A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7e17;
/* rgb */ color: rgb(45, 126, 23);
/* oklch */ color: oklch(52.3% 0.156 140.1);
Tailwind
colors: {
  custom: {
    50: '#71a45d',
    500: '#2d7e17',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e17;
$custom-light: #71a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e17",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 107.184,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52332,
    "c": 0.15562,
    "h": 140.1
  },
  "luminance": 0.15541
}

Semantic roles & 50–950 ramp

primary
#2D7E17
secondary
#9A3EB3
accent
#3CECC6
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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