#2D6818#2D6818

#2D6818 is a mid, vivid green. Relative luminance 0.105; OKLCH L 46.1% C 0.127 H 138.9°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2D6818
RGBrgb(45, 104, 24)
HSLhsl(104, 63%, 25%)
HSVhsv(104, 77%, 41%)
CMYKcmyk(56.7%, 0%, 76.9%, 59.2%)
CIE-LABlab(38.77, -34.82, 37.06)
CIE-LCHlch(38.77, 50.86, 133.21°)
OKLaboklab(46.06% -0.0959 0.0837)
OKLCHoklch(46.06% 0.127 138.9)
XYZxyz(6.1971, 10.5240, 2.5687)
Luminance0.1052 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6818 #531868
analogous
#556818 #2D6818 #18682B
triadic
#2D6818 #182D68 #68182D
tetradic
#2D6818 #185568 #531868 #682B18
square
#2D6818 #185568 #531868 #682B18
split-complementary
#2D6818 #2B1868 #681855
monochromatic
#0B1906 #17360D #2D6818 #439A23 #58CB2F

Accessibility & contrast

On white

6.76
#2D6818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D6818
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6818#FFFFFF#000000##FFFFFF
##2D68181.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E09
Deuteranopia (green-blind)
#645920
Tritanopia (blue-blind)
#276458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d6818;
/* rgb */ color: rgb(45, 104, 24);
/* oklch */ color: oklch(46.1% 0.127 138.9);
Tailwind
colors: {
  custom: {
    50: '#6d945b',
    500: '#2d6818',
    950: '#000000',
  },
}
SCSS
$custom: #2d6818;
$custom-light: #6d945b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6818",
  "rgb": {
    "r": 45,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 104.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.46057,
    "c": 0.12732,
    "h": 138.9
  },
  "luminance": 0.10524
}

Semantic roles & 50–950 ramp

primary
#2D6818
secondary
#853E9E
accent
#42E6BB
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2D6818

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

Preview Lab → · Contrast checker → · Palette generator →

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