#2D6812#2D6812

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

Color values

HEX#2D6812
RGBrgb(45, 104, 18)
HSLhsl(101, 70%, 24%)
HSVhsv(101, 83%, 41%)
CMYKcmyk(56.7%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.73, -35.26, 39.27)
CIE-LCHlch(38.73, 52.77, 131.92°)
OKLaboklab(46.01% -0.0975 0.0874)
OKLCHoklch(46.01% 0.131 138.1)
XYZxyz(6.1415, 10.5017, 2.2756)
Luminance0.1050 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6812 #4D1268
analogous
#586812 #2D6812 #126822
triadic
#2D6812 #122D68 #68122D
tetradic
#2D6812 #125868 #4D1268 #682212
square
#2D6812 #125868 #4D1268 #682212
split-complementary
#2D6812 #221268 #681258
monochromatic
#0B1A05 #163409 #2D6812 #449C1B #5AD024

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D6812#FFFFFF#000000##FFFFFF
##2D68121.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)
#6B5E00
Deuteranopia (green-blind)
#64591C
Tritanopia (blue-blind)
#286458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d6812;
/* rgb */ color: rgb(45, 104, 18);
/* oklch */ color: oklch(46.0% 0.131 138.1);
Tailwind
colors: {
  custom: {
    50: '#6d9458',
    500: '#2d6812',
    950: '#000000',
  },
}
SCSS
$custom: #2d6812;
$custom-light: #6d9458;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6812",
  "rgb": {
    "r": 45,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 101.163,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.46012,
    "c": 0.13093,
    "h": 138.1
  },
  "luminance": 0.10502
}

Semantic roles & 50–950 ramp

primary
#2D6812
secondary
#7F36A0
accent
#3BEDB5
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2D6812

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

Preview Lab → · Contrast checker → · Palette generator →

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