#2D6817#2D6817

#2D6817 is a mid, vivid green. Relative luminance 0.105; OKLCH L 46.0% C 0.128 H 138.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#2D6817
RGBrgb(45, 104, 23)
HSLhsl(104, 64%, 25%)
HSVhsv(104, 78%, 41%)
CMYKcmyk(56.7%, 0%, 77.9%, 59.2%)
CIE-LABlab(38.76, -34.90, 37.46)
CIE-LCHlch(38.76, 51.20, 132.98°)
OKLaboklab(46.05% -0.0962 0.0844)
OKLCHoklch(46.05% 0.128 138.8)
XYZxyz(6.1869, 10.5199, 2.5150)
Luminance0.1052 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6817 #521768
analogous
#556817 #2D6817 #17682A
triadic
#2D6817 #172D68 #68172D
tetradic
#2D6817 #175568 #521768 #682A17
square
#2D6817 #175568 #521768 #682A17
split-complementary
#2D6817 #2A1768 #681755
monochromatic
#0B1906 #17360C #2D6817 #439A22 #58CC2D

Accessibility & contrast

On white

6.77
#2D6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2D6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6817
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6817#FFFFFF#000000##FFFFFF
##2D68171.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E07
Deuteranopia (green-blind)
#64591F
Tritanopia (blue-blind)
#286458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d6817;
/* rgb */ color: rgb(45, 104, 23);
/* oklch */ color: oklch(46.0% 0.128 138.8);
Tailwind
colors: {
  custom: {
    50: '#6d945a',
    500: '#2d6817',
    950: '#000000',
  },
}
SCSS
$custom: #2d6817;
$custom-light: #6d945a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6817",
  "rgb": {
    "r": 45,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 103.704,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46048,
    "c": 0.12797,
    "h": 138.8
  },
  "luminance": 0.1052
}

Semantic roles & 50–950 ramp

primary
#2D6817
secondary
#843D9E
accent
#41E7BA
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2D6817

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

Preview Lab → · Contrast checker → · Palette generator →

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