#2D7417#2D7417

#2D7417 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.5% C 0.143 H 139.6°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#2D7417
RGBrgb(45, 116, 23)
HSLhsl(106, 67%, 27%)
HSVhsv(106, 80%, 45%)
CMYKcmyk(61.2%, 0%, 80.2%, 54.5%)
CIE-LABlab(42.93, -39.72, 41.55)
CIE-LCHlch(42.93, 57.48, 133.70°)
OKLaboklab(49.49% -0.1092 0.0929)
OKLCHoklch(49.49% 0.143 139.6)
XYZxyz(7.4819, 13.1099, 2.9466)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7417 #5E1774
analogous
#5C7417 #2D7417 #17742F
triadic
#2D7417 #172D74 #74172D
tetradic
#2D7417 #175C74 #5E1774 #742F17
square
#2D7417 #175C74 #5E1774 #742F17
split-complementary
#2D7417 #2F1774 #74175C
monochromatic
#0A1A05 #19410D #2D7417 #41A721 #57D630

Accessibility & contrast

On white

5.80
#2D7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#2D7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7417
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7417#FFFFFF#000000##FFFFFF
##2D74171.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776902
Deuteranopia (green-blind)
#6F6321
Tritanopia (blue-blind)
#247063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2d7417;
/* rgb */ color: rgb(45, 116, 23);
/* oklch */ color: oklch(49.5% 0.143 139.6);
Tailwind
colors: {
  custom: {
    50: '#6f9d5c',
    500: '#2d7417',
    950: '#000000',
  },
}
SCSS
$custom: #2d7417;
$custom-light: #6f9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7417",
  "rgb": {
    "r": 45,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 105.806,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49489,
    "c": 0.14338,
    "h": 139.6
  },
  "luminance": 0.13111
}

Semantic roles & 50–950 ramp

primary
#2D7417
secondary
#903DA9
accent
#3EEAC1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7417

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

Preview Lab → · Contrast checker → · Palette generator →

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