#2D7E12#2D7E12

#2D7E12 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.158 H 139.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2D7E12
RGBrgb(45, 126, 18)
HSLhsl(105, 75%, 28%)
HSVhsv(105, 86%, 49%)
CMYKcmyk(64.3%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.34, -43.79, 46.33)
CIE-LCHlch(46.34, 63.76, 133.39°)
OKLaboklab(52.3% -0.1204 0.1022)
OKLCHoklch(52.3% 0.158 139.7)
XYZxyz(8.6518, 15.5224, 3.1123)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E12 #63127E
analogous
#637E12 #2D7E12 #127E2D
triadic
#2D7E12 #122D7E #7E122D
tetradic
#2D7E12 #12637E #63127E #7E2D12
square
#2D7E12 #12637E #63127E #7E2D12
split-complementary
#2D7E12 #2D127E #7E1263
monochromatic
#0A1B04 #1A480A #2D7E12 #40B41A #58E12A

Accessibility & contrast

On white

5.12
#2D7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2D7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7E12
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7E12#FFFFFF#000000##FFFFFF
##2D7E121.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786B20
Tritanopia (blue-blind)
#227A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7e12;
/* rgb */ color: rgb(45, 126, 18);
/* oklch */ color: oklch(52.3% 0.158 139.7);
Tailwind
colors: {
  custom: {
    50: '#72a45b',
    500: '#2d7e12',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e12;
$custom-light: #72a45b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e12",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 105,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52304,
    "c": 0.15792,
    "h": 139.7
  },
  "luminance": 0.15523
}

Semantic roles & 50–950 ramp

primary
#2D7E12
secondary
#9538B4
accent
#36F2C3
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2D7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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