#2D7517#2D7517

#2D7517 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.8% C 0.145 H 139.7°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#2D7517
RGBrgb(45, 117, 23)
HSLhsl(106, 67%, 27%)
HSVhsv(106, 80%, 46%)
CMYKcmyk(61.5%, 0%, 80.3%, 54.1%)
CIE-LABlab(43.27, -40.10, 41.89)
CIE-LCHlch(43.27, 57.99, 133.75°)
OKLaboklab(49.77% -0.1102 0.0936)
OKLCHoklch(49.77% 0.145 139.7)
XYZxyz(7.5978, 13.3416, 2.9853)
Luminance0.1334 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7517 #5F1775
analogous
#5C7517 #2D7517 #177530
triadic
#2D7517 #172D75 #75172D
tetradic
#2D7517 #175C75 #5F1775 #753017
square
#2D7517 #175C75 #5F1775 #753017
split-complementary
#2D7517 #301775 #75175C
monochromatic
#0A1A05 #19420D #2D7517 #41A821 #57D630

Accessibility & contrast

On white

5.72
#2D7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#2D7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7517
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7517#FFFFFF#000000##FFFFFF
##2D75171.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A01
Deuteranopia (green-blind)
#706422
Tritanopia (blue-blind)
#247163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2d7517;
/* rgb */ color: rgb(45, 117, 23);
/* oklch */ color: oklch(49.8% 0.145 139.7);
Tailwind
colors: {
  custom: {
    50: '#709d5c',
    500: '#2d7517',
    950: '#000000',
  },
}
SCSS
$custom: #2d7517;
$custom-light: #709d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7517",
  "rgb": {
    "r": 45,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 105.957,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49774,
    "c": 0.14462,
    "h": 139.7
  },
  "luminance": 0.13342
}

Semantic roles & 50–950 ramp

primary
#2D7517
secondary
#913DAA
accent
#3EEAC2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7517

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

Preview Lab → · Contrast checker → · Palette generator →

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