#2D7917#2D7917

#2D7917 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.150 H 139.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#2D7917
RGBrgb(45, 121, 23)
HSLhsl(107, 68%, 28%)
HSVhsv(107, 81%, 47%)
CMYKcmyk(62.8%, 0%, 81%, 52.5%)
CIE-LABlab(44.65, -41.63, 43.21)
CIE-LCHlch(44.65, 60.01, 133.93°)
OKLaboklab(50.91% -0.1144 0.0964)
OKLCHoklch(50.91% 0.15 139.9)
XYZxyz(8.0739, 14.2938, 3.1439)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7917 #631779
analogous
#5E7917 #2D7917 #177932
triadic
#2D7917 #172D79 #79172D
tetradic
#2D7917 #175E79 #631779 #793217
square
#2D7917 #175E79 #631779 #793217
split-complementary
#2D7917 #321779 #79175E
monochromatic
#0A1A05 #1A460D #2D7917 #40AC21 #58D832

Accessibility & contrast

On white

5.44
#2D7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2D7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7917
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7917#FFFFFF#000000##FFFFFF
##2D79171.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#736722
Tritanopia (blue-blind)
#237567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d7917;
/* rgb */ color: rgb(45, 121, 23);
/* oklch */ color: oklch(50.9% 0.150 139.9);
Tailwind
colors: {
  custom: {
    50: '#70a05d',
    500: '#2d7917',
    950: '#000000',
  },
}
SCSS
$custom: #2d7917;
$custom-light: #70a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7917",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 106.531,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50913,
    "c": 0.14956,
    "h": 139.9
  },
  "luminance": 0.14294
}

Semantic roles & 50–950 ramp

primary
#2D7917
secondary
#953EAE
accent
#3DEBC4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2D7917

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

Preview Lab → · Contrast checker → · Palette generator →

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