#2D7012#2D7012

#2D7012 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.3% C 0.141 H 138.8°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2D7012
RGBrgb(45, 112, 18)
HSLhsl(103, 72%, 25%)
HSVhsv(103, 84%, 44%)
CMYKcmyk(59.8%, 0%, 83.9%, 56.1%)
CIE-LABlab(41.52, -38.47, 41.89)
CIE-LCHlch(41.52, 56.88, 132.56°)
OKLaboklab(48.31% -0.1062 0.0929)
OKLCHoklch(48.31% 0.141 138.8)
XYZxyz(6.9853, 12.1893, 2.5568)
Luminance0.1219 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7012 #551270
analogous
#5C7012 #2D7012 #127026
triadic
#2D7012 #122D70 #70122D
tetradic
#2D7012 #125C70 #551270 #702612
square
#2D7012 #125C70 #551270 #702612
split-complementary
#2D7012 #261270 #70125C
monochromatic
#0B1A04 #183B0A #2D7012 #42A51A #57D923

Accessibility & contrast

On white

6.11
#2D7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2D7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7012
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7012#FFFFFF#000000##FFFFFF
##2D70121.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746500
Deuteranopia (green-blind)
#6B601D
Tritanopia (blue-blind)
#266C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d7012;
/* rgb */ color: rgb(45, 112, 18);
/* oklch */ color: oklch(48.3% 0.141 138.8);
Tailwind
colors: {
  custom: {
    50: '#6f9a59',
    500: '#2d7012',
    950: '#000000',
  },
}
SCSS
$custom: #2d7012;
$custom-light: #6f9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7012",
  "rgb": {
    "r": 45,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 102.766,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48313,
    "c": 0.14104,
    "h": 138.8
  },
  "luminance": 0.1219
}

Semantic roles & 50–950 ramp

primary
#2D7012
secondary
#8737A7
accent
#39EFBB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7012

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

Preview Lab → · Contrast checker → · Palette generator →

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