#2D7312#2D7312

#2D7312 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.2% C 0.145 H 139.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#2D7312
RGBrgb(45, 115, 18)
HSLhsl(103, 73%, 26%)
HSVhsv(103, 84%, 45%)
CMYKcmyk(60.9%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.56, -39.65, 42.86)
CIE-LCHlch(42.56, 58.38, 132.77°)
OKLaboklab(49.17% -0.1093 0.0949)
OKLCHoklch(49.17% 0.145 139)
XYZxyz(7.3218, 12.8624, 2.6690)
Luminance0.1286 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7312 #581273
analogous
#5D7312 #2D7312 #127327
triadic
#2D7312 #122D73 #73122D
tetradic
#2D7312 #125D73 #581273 #732712
square
#2D7312 #125D73 #581273 #732712
split-complementary
#2D7312 #271273 #73125D
monochromatic
#0A1A04 #183E0A #2D7312 #42A81A #57DD23

Accessibility & contrast

On white

5.88
#2D7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2D7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7312
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7312#FFFFFF#000000##FFFFFF
##2D73121.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E621E
Tritanopia (blue-blind)
#256F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d7312;
/* rgb */ color: rgb(45, 115, 18);
/* oklch */ color: oklch(49.2% 0.145 139.0);
Tailwind
colors: {
  custom: {
    50: '#6f9c5a',
    500: '#2d7312',
    950: '#000000',
  },
}
SCSS
$custom: #2d7312;
$custom-light: #6f9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7312",
  "rgb": {
    "r": 45,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 103.299,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49172,
    "c": 0.14474,
    "h": 139
  },
  "luminance": 0.12863
}

Semantic roles & 50–950 ramp

primary
#2D7312
secondary
#8A37AA
accent
#38F0BD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7312

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

Preview Lab → · Contrast checker → · Palette generator →

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