#2D7512#2D7512

#2D7512 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.147 H 139.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#2D7512
RGBrgb(45, 117, 18)
HSLhsl(104, 73%, 26%)
HSVhsv(104, 85%, 46%)
CMYKcmyk(61.5%, 0%, 84.6%, 54.1%)
CIE-LABlab(43.25, -40.42, 43.50)
CIE-LCHlch(43.25, 59.38, 132.90°)
OKLaboklab(49.74% -0.1114 0.0962)
OKLCHoklch(49.74% 0.147 139.2)
XYZxyz(7.5523, 13.3235, 2.7458)
Luminance0.1332 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7512 #5A1275
analogous
#5F7512 #2D7512 #127529
triadic
#2D7512 #122D75 #75122D
tetradic
#2D7512 #125F75 #5A1275 #752912
square
#2D7512 #125F75 #5A1275 #752912
split-complementary
#2D7512 #291275 #75125F
monochromatic
#0A1B04 #19400A #2D7512 #41AA1A #57DD24

Accessibility & contrast

On white

5.73
#2D7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2D7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7512
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7512#FFFFFF#000000##FFFFFF
##2D75121.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#257163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2d7512;
/* rgb */ color: rgb(45, 117, 18);
/* oklch */ color: oklch(49.7% 0.147 139.2);
Tailwind
colors: {
  custom: {
    50: '#709d5a',
    500: '#2d7512',
    950: '#000000',
  },
}
SCSS
$custom: #2d7512;
$custom-light: #709d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7512",
  "rgb": {
    "r": 45,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 103.636,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49743,
    "c": 0.14718,
    "h": 139.2
  },
  "luminance": 0.13324
}

Semantic roles & 50–950 ramp

primary
#2D7512
secondary
#8C37AC
accent
#38F0BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7512

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

Preview Lab → · Contrast checker → · Palette generator →

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