#2D7B17#2D7B17

#2D7B17 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.152 H 140.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2D7B17
RGBrgb(45, 123, 23)
HSLhsl(107, 68%, 29%)
HSVhsv(107, 81%, 48%)
CMYKcmyk(63.4%, 0%, 81.3%, 51.8%)
CIE-LABlab(45.34, -42.39, 43.87)
CIE-LCHlch(45.34, 61.00, 134.02°)
OKLaboklab(51.48% -0.1164 0.0978)
OKLCHoklch(51.48% 0.152 140)
XYZxyz(8.3194, 14.7849, 3.2258)
Luminance0.1479 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7B17 #65177B
analogous
#5F7B17 #2D7B17 #177B33
triadic
#2D7B17 #172D7B #7B172D
tetradic
#2D7B17 #175F7B #65177B #7B3317
square
#2D7B17 #175F7B #65177B #7B3317
split-complementary
#2D7B17 #33177B #7B175F
monochromatic
#091A05 #1A470D #2D7B17 #40AF21 #58D933

Accessibility & contrast

On white

5.31
#2D7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2D7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7B17
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7B17#FFFFFF#000000##FFFFFF
##2D7B171.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#227768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7b17;
/* rgb */ color: rgb(45, 123, 23);
/* oklch */ color: oklch(51.5% 0.152 140.0);
Tailwind
colors: {
  custom: {
    50: '#71a25d',
    500: '#2d7b17',
    950: '#000000',
  },
}
SCSS
$custom: #2d7b17;
$custom-light: #71a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7b17",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 106.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51481,
    "c": 0.152,
    "h": 140
  },
  "luminance": 0.14786
}

Semantic roles & 50–950 ramp

primary
#2D7B17
secondary
#973EB0
accent
#3CEBC5
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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