#2D7F12#2D7F12

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

Color values

HEX#2D7F12
RGBrgb(45, 127, 18)
HSLhsl(105, 75%, 28%)
HSVhsv(105, 86%, 50%)
CMYKcmyk(64.6%, 0%, 85.8%, 50.2%)
CIE-LABlab(46.68, -44.16, 46.64)
CIE-LCHlch(46.68, 64.23, 133.43°)
OKLaboklab(52.59% -0.1214 0.1028)
OKLCHoklch(52.59% 0.159 139.7)
XYZxyz(8.7803, 15.7795, 3.1552)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F12 #64127F
analogous
#637F12 #2D7F12 #127F2E
triadic
#2D7F12 #122D7F #7F122D
tetradic
#2D7F12 #12637F #64127F #7F2E12
square
#2D7F12 #12637F #64127F #7F2E12
split-complementary
#2D7F12 #2E127F #7F1263
monochromatic
#091B04 #1A490A #2D7F12 #40B51A #58E12B

Accessibility & contrast

On white

5.05
#2D7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2D7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F12
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F12#FFFFFF#000000##FFFFFF
##2D7F121.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#217B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f12;
/* rgb */ color: rgb(45, 127, 18);
/* oklch */ color: oklch(52.6% 0.159 139.7);
Tailwind
colors: {
  custom: {
    50: '#72a55c',
    500: '#2d7f12',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f12;
$custom-light: #72a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f12",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 105.138,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52587,
    "c": 0.1591,
    "h": 139.7
  },
  "luminance": 0.1578
}

Semantic roles & 50–950 ramp

primary
#2D7F12
secondary
#9638B5
accent
#36F2C3
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2D7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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