#2D7A17#2D7A17

#2D7A17 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.151 H 139.9°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2D7A17
RGBrgb(45, 122, 23)
HSLhsl(107, 68%, 28%)
HSVhsv(107, 81%, 48%)
CMYKcmyk(63.1%, 0%, 81.1%, 52.2%)
CIE-LABlab(44.99, -42.01, 43.54)
CIE-LCHlch(44.99, 60.51, 133.98°)
OKLaboklab(51.2% -0.1154 0.0971)
OKLCHoklch(51.2% 0.151 139.9)
XYZxyz(8.1960, 14.5381, 3.1847)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7A17 #64177A
analogous
#5E7A17 #2D7A17 #177A32
triadic
#2D7A17 #172D7A #7A172D
tetradic
#2D7A17 #175E7A #64177A #7A3217
square
#2D7A17 #175E7A #64177A #7A3217
split-complementary
#2D7A17 #32177A #7A175E
monochromatic
#091A05 #1A470D #2D7A17 #40AD21 #58D933

Accessibility & contrast

On white

5.37
#2D7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2D7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7A17
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7A17#FFFFFF#000000##FFFFFF
##2D7A171.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#237668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d7a17;
/* rgb */ color: rgb(45, 122, 23);
/* oklch */ color: oklch(51.2% 0.151 139.9);
Tailwind
colors: {
  custom: {
    50: '#71a15d',
    500: '#2d7a17',
    950: '#000000',
  },
}
SCSS
$custom: #2d7a17;
$custom-light: #71a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7a17",
  "rgb": {
    "r": 45,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 106.667,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51197,
    "c": 0.15078,
    "h": 139.9
  },
  "luminance": 0.14539
}

Semantic roles & 50–950 ramp

primary
#2D7A17
secondary
#963EAF
accent
#3DEBC4
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2D7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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