#2D7C17#2D7C17

#2D7C17 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.153 H 140.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2D7C17
RGBrgb(45, 124, 23)
HSLhsl(107, 69%, 29%)
HSVhsv(107, 81%, 49%)
CMYKcmyk(63.7%, 0%, 81.5%, 51.4%)
CIE-LABlab(45.68, -42.76, 44.20)
CIE-LCHlch(45.68, 61.50, 134.06°)
OKLaboklab(51.77% -0.1174 0.0984)
OKLCHoklch(51.77% 0.153 140)
XYZxyz(8.4441, 15.0343, 3.2674)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7C17 #66177C
analogous
#607C17 #2D7C17 #177C34
triadic
#2D7C17 #172D7C #7C172D
tetradic
#2D7C17 #17607C #66177C #7C3417
square
#2D7C17 #17607C #66177C #7C3417
split-complementary
#2D7C17 #34177C #7C1760
monochromatic
#091A05 #1A480D #2D7C17 #40B021 #58D934

Accessibility & contrast

On white

5.24
#2D7C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2D7C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7C17
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7C17#FFFFFF#000000##FFFFFF
##2D7C171.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#227869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7c17;
/* rgb */ color: rgb(45, 124, 23);
/* oklch */ color: oklch(51.8% 0.153 140.0);
Tailwind
colors: {
  custom: {
    50: '#71a35d',
    500: '#2d7c17',
    950: '#000000',
  },
}
SCSS
$custom: #2d7c17;
$custom-light: #71a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7c17",
  "rgb": {
    "r": 45,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 106.931,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51765,
    "c": 0.1532,
    "h": 140
  },
  "luminance": 0.15035
}

Semantic roles & 50–950 ramp

primary
#2D7C17
secondary
#983EB1
accent
#3CECC5
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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