#2D6D12#2D6D12

#2D6D12 is a mid, vivid green. Relative luminance 0.115; OKLCH L 47.5% C 0.137 H 138.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2D6D12
RGBrgb(45, 109, 18)
HSLhsl(102, 72%, 25%)
HSVhsv(102, 83%, 43%)
CMYKcmyk(58.7%, 0%, 83.5%, 57.3%)
CIE-LABlab(40.47, -37.29, 40.92)
CIE-LCHlch(40.47, 55.36, 132.34°)
OKLaboklab(47.45% -0.103 0.0908)
OKLCHoklch(47.45% 0.137 138.6)
XYZxyz(6.6598, 11.5383, 2.4483)
Luminance0.1154 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6D12 #52126D
analogous
#5B6D12 #2D6D12 #126D25
triadic
#2D6D12 #122D6D #6D122D
tetradic
#2D6D12 #125B6D #52126D #6D2512
square
#2D6D12 #125B6D #52126D #6D2512
split-complementary
#2D6D12 #25126D #6D125B
monochromatic
#0B1A04 #173809 #2D6D12 #43A21B #58D623

Accessibility & contrast

On white

6.35
#2D6D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2D6D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D6D12
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6D12#FFFFFF#000000##FFFFFF
##2D6D121.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716300
Deuteranopia (green-blind)
#695D1D
Tritanopia (blue-blind)
#27695C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d6d12;
/* rgb */ color: rgb(45, 109, 18);
/* oklch */ color: oklch(47.5% 0.137 138.6);
Tailwind
colors: {
  custom: {
    50: '#6e9759',
    500: '#2d6d12',
    950: '#000000',
  },
}
SCSS
$custom: #2d6d12;
$custom-light: #6e9759;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6d12",
  "rgb": {
    "r": 45,
    "g": 109,
    "b": 18
  },
  "hsl": {
    "h": 102.198,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47452,
    "c": 0.13729,
    "h": 138.6
  },
  "luminance": 0.11539
}

Semantic roles & 50–950 ramp

primary
#2D6D12
secondary
#8437A4
accent
#39EEB9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2D6D12

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

Preview Lab → · Contrast checker → · Palette generator →

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