#2C7E12#2C7E12

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

Color values

HEX#2C7E12
RGBrgb(44, 126, 18)
HSLhsl(106, 75%, 28%)
HSVhsv(106, 86%, 49%)
CMYKcmyk(65.1%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.31, -44.04, 46.30)
CIE-LCHlch(46.31, 63.90, 133.57°)
OKLaboklab(52.27% -0.121 0.1021)
OKLCHoklch(52.27% 0.158 139.9)
XYZxyz(8.6083, 15.5000, 3.1103)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7E12 #64127E
analogous
#627E12 #2C7E12 #127E2E
triadic
#2C7E12 #122C7E #7E122C
tetradic
#2C7E12 #12627E #64127E #7E2E12
square
#2C7E12 #12627E #64127E #7E2E12
split-complementary
#2C7E12 #2E127E #7E1262
monochromatic
#091B04 #19480A #2C7E12 #3FB41A #56E12A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C7E12#FFFFFF#000000##FFFFFF
##2C7E121.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)
#207A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2c7e12;
/* rgb */ color: rgb(44, 126, 18);
/* oklch */ color: oklch(52.3% 0.158 139.9);
Tailwind
colors: {
  custom: {
    50: '#71a45b',
    500: '#2c7e12',
    950: '#000000',
  },
}
SCSS
$custom: #2c7e12;
$custom-light: #71a45b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7e12",
  "rgb": {
    "r": 44,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 105.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52271,
    "c": 0.15834,
    "h": 139.9
  },
  "luminance": 0.15501
}

Semantic roles & 50–950 ramp

primary
#2C7E12
secondary
#9638B4
accent
#36F2C4
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2C7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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