#2D6D17#2D6D17

#2D6D17 is a mid, vivid green. Relative luminance 0.116; OKLCH L 47.5% C 0.135 H 139.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2D6D17
RGBrgb(45, 109, 23)
HSLhsl(105, 65%, 26%)
HSVhsv(105, 79%, 43%)
CMYKcmyk(58.7%, 0%, 78.9%, 57.3%)
CIE-LABlab(40.50, -36.95, 39.18)
CIE-LCHlch(40.50, 53.86, 133.32°)
OKLaboklab(47.49% -0.1017 0.088)
OKLCHoklch(47.49% 0.135 139.2)
XYZxyz(6.7052, 11.5565, 2.6877)
Luminance0.1156 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6D17 #57176D
analogous
#586D17 #2D6D17 #176D2C
triadic
#2D6D17 #172D6D #6D172D
tetradic
#2D6D17 #17586D #57176D #6D2C17
square
#2D6D17 #17586D #57176D #6D2C17
split-complementary
#2D6D17 #2C176D #6D1758
monochromatic
#0A1905 #183A0C #2D6D17 #42A022 #57D22C

Accessibility & contrast

On white

6.34
#2D6D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2D6D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6D17
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6D17#FFFFFF#000000##FFFFFF
##2D6D171.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706305
Deuteranopia (green-blind)
#685D20
Tritanopia (blue-blind)
#26695D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d6d17;
/* rgb */ color: rgb(45, 109, 23);
/* oklch */ color: oklch(47.5% 0.135 139.2);
Tailwind
colors: {
  custom: {
    50: '#6e975b',
    500: '#2d6d17',
    950: '#000000',
  },
}
SCSS
$custom: #2d6d17;
$custom-light: #6e975b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6d17",
  "rgb": {
    "r": 45,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 104.651,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.47486,
    "c": 0.1345,
    "h": 139.2
  },
  "luminance": 0.11557
}

Semantic roles & 50–950 ramp

primary
#2D6D17
secondary
#893DA3
accent
#40E8BD
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2D6D17

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

Preview Lab → · Contrast checker → · Palette generator →

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