#2D6712#2D6712

#2D6712 is a mid, vivid green. Relative luminance 0.103; OKLCH L 45.7% C 0.130 H 138.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2D6712
RGBrgb(45, 103, 18)
HSLhsl(101, 70%, 24%)
HSVhsv(101, 83%, 40%)
CMYKcmyk(56.3%, 0%, 82.5%, 59.6%)
CIE-LABlab(38.38, -34.85, 38.94)
CIE-LCHlch(38.38, 52.25, 131.83°)
OKLaboklab(45.72% -0.0964 0.0867)
OKLCHoklch(45.72% 0.13 138)
XYZxyz(6.0414, 10.3016, 2.2422)
Luminance0.1030 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6712 #4C1267
analogous
#576712 #2D6712 #126721
triadic
#2D6712 #122D67 #67122D
tetradic
#2D6712 #125767 #4C1267 #672112
square
#2D6712 #125767 #4C1267 #672112
split-complementary
#2D6712 #211267 #671257
monochromatic
#0B1A05 #163309 #2D6712 #449B1B #5BCF24

Accessibility & contrast

On white

6.86
#2D6712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2D6712 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6712
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6712#FFFFFF#000000##FFFFFF
##2D67121.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#63591C
Tritanopia (blue-blind)
#286357
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d6712;
/* rgb */ color: rgb(45, 103, 18);
/* oklch */ color: oklch(45.7% 0.130 138.0);
Tailwind
colors: {
  custom: {
    50: '#6d9358',
    500: '#2d6712',
    950: '#000000',
  },
}
SCSS
$custom: #2d6712;
$custom-light: #6d9358;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6712",
  "rgb": {
    "r": 45,
    "g": 103,
    "b": 18
  },
  "hsl": {
    "h": 100.941,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.45724,
    "c": 0.12964,
    "h": 138
  },
  "luminance": 0.10302
}

Semantic roles & 50–950 ramp

primary
#2D6712
secondary
#7D369F
accent
#3BEDB4
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #2D6712

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

Preview Lab → · Contrast checker → · Palette generator →

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