#2C7512#2C7512

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

Color values

HEX#2C7512
RGBrgb(44, 117, 18)
HSLhsl(104, 73%, 26%)
HSVhsv(104, 85%, 46%)
CMYKcmyk(62.4%, 0%, 84.6%, 54.1%)
CIE-LABlab(43.21, -40.69, 43.46)
CIE-LCHlch(43.21, 59.53, 133.11°)
OKLaboklab(49.71% -0.112 0.0961)
OKLCHoklch(49.71% 0.148 139.4)
XYZxyz(7.5089, 13.3010, 2.7438)
Luminance0.1330 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7512 #5B1275
analogous
#5E7512 #2C7512 #12752A
triadic
#2C7512 #122C75 #75122C
tetradic
#2C7512 #125E75 #5B1275 #752A12
square
#2C7512 #125E75 #5B1275 #752A12
split-complementary
#2C7512 #2A1275 #75125E
monochromatic
#0A1B04 #18400A #2C7512 #40AA1A #55DD24

Accessibility & contrast

On white

5.74
#2C7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C7512
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7512#FFFFFF#000000##FFFFFF
##2C75121.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c7512;
/* rgb */ color: rgb(44, 117, 18);
/* oklch */ color: oklch(49.7% 0.148 139.4);
Tailwind
colors: {
  custom: {
    50: '#6f9d5a',
    500: '#2c7512',
    950: '#000000',
  },
}
SCSS
$custom: #2c7512;
$custom-light: #6f9d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7512",
  "rgb": {
    "r": 44,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 104.242,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49707,
    "c": 0.14763,
    "h": 139.4
  },
  "luminance": 0.13302
}

Semantic roles & 50–950 ramp

primary
#2C7512
secondary
#8D37AC
accent
#38F0C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7512

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

Preview Lab → · Contrast checker → · Palette generator →

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