#2D7217#2D7217

#2D7217 is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.9% C 0.141 H 139.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2D7217
RGBrgb(45, 114, 23)
HSLhsl(105, 66%, 27%)
HSVhsv(105, 80%, 45%)
CMYKcmyk(60.5%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.24, -38.93, 40.88)
CIE-LCHlch(42.24, 56.46, 133.60°)
OKLaboklab(48.92% -0.1071 0.0915)
OKLCHoklch(48.92% 0.141 139.5)
XYZxyz(7.2538, 12.6537, 2.8706)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7217 #5C1772
analogous
#5A7217 #2D7217 #17722F
triadic
#2D7217 #172D72 #72172D
tetradic
#2D7217 #175A72 #5C1772 #722F17
square
#2D7217 #175A72 #5C1772 #722F17
split-complementary
#2D7217 #2F1772 #72175A
monochromatic
#0A1905 #193F0D #2D7217 #41A521 #57D52E

Accessibility & contrast

On white

5.95
#2D7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2D7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7217
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7217#FFFFFF#000000##FFFFFF
##2D72171.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#6D6221
Tritanopia (blue-blind)
#256E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d7217;
/* rgb */ color: rgb(45, 114, 23);
/* oklch */ color: oklch(48.9% 0.141 139.5);
Tailwind
colors: {
  custom: {
    50: '#6f9b5c',
    500: '#2d7217',
    950: '#000000',
  },
}
SCSS
$custom: #2d7217;
$custom-light: #6f9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7217",
  "rgb": {
    "r": 45,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 105.495,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48918,
    "c": 0.14087,
    "h": 139.5
  },
  "luminance": 0.12654
}

Semantic roles & 50–950 ramp

primary
#2D7217
secondary
#8E3DA8
accent
#3EE9C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7217

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

Preview Lab → · Contrast checker → · Palette generator →

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