#2D6917#2D6917

#2D6917 is a mid, vivid green. Relative luminance 0.107; OKLCH L 46.3% C 0.129 H 138.8°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#2D6917
RGBrgb(45, 105, 23)
HSLhsl(104, 64%, 25%)
HSVhsv(104, 78%, 41%)
CMYKcmyk(57.1%, 0%, 78.1%, 58.8%)
CIE-LABlab(39.11, -35.31, 37.80)
CIE-LCHlch(39.11, 51.73, 133.05°)
OKLaboklab(46.34% -0.0974 0.0851)
OKLCHoklch(46.34% 0.129 138.8)
XYZxyz(6.2882, 10.7224, 2.5487)
Luminance0.1072 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6917 #531769
analogous
#566917 #2D6917 #17692A
triadic
#2D6917 #172D69 #69172D
tetradic
#2D6917 #175669 #531769 #692A17
square
#2D6917 #175669 #531769 #692A17
split-complementary
#2D6917 #2A1769 #691756
monochromatic
#0B1905 #17370C #2D6917 #439B22 #58CD2D

Accessibility & contrast

On white

6.68
#2D6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2D6917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6917
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6917#FFFFFF#000000##FFFFFF
##2D69171.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F07
Deuteranopia (green-blind)
#655A1F
Tritanopia (blue-blind)
#276559
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2d6917;
/* rgb */ color: rgb(45, 105, 23);
/* oklch */ color: oklch(46.3% 0.129 138.8);
Tailwind
colors: {
  custom: {
    50: '#6d945a',
    500: '#2d6917',
    950: '#000000',
  },
}
SCSS
$custom: #2d6917;
$custom-light: #6d945a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6917",
  "rgb": {
    "r": 45,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 103.902,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.46336,
    "c": 0.1293,
    "h": 138.8
  },
  "luminance": 0.10723
}

Semantic roles & 50–950 ramp

primary
#2D6917
secondary
#853D9F
accent
#41E7BA
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2D6917

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

Preview Lab → · Contrast checker → · Palette generator →

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