#2C7212#2C7212

#2C7212 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.144 H 139.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2C7212
RGBrgb(44, 114, 18)
HSLhsl(104, 73%, 26%)
HSVhsv(104, 84%, 45%)
CMYKcmyk(61.4%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.17, -39.54, 42.49)
CIE-LCHlch(42.17, 58.04, 132.94°)
OKLaboklab(48.85% -0.1089 0.0941)
OKLCHoklch(48.85% 0.144 139.2)
XYZxyz(7.1649, 12.6131, 2.6292)
Luminance0.1261 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7212 #581272
analogous
#5C7212 #2C7212 #127228
triadic
#2C7212 #122C72 #72122C
tetradic
#2C7212 #125C72 #581272 #722812
square
#2C7212 #125C72 #581272 #722812
split-complementary
#2C7212 #281272 #72125C
monochromatic
#0A1A04 #183D0A #2C7212 #40A71A #55DC23

Accessibility & contrast

On white

5.96
#2C7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2C7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7212
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7212#FFFFFF#000000##FFFFFF
##2C72121.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D611E
Tritanopia (blue-blind)
#246E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c7212;
/* rgb */ color: rgb(44, 114, 18);
/* oklch */ color: oklch(48.8% 0.144 139.2);
Tailwind
colors: {
  custom: {
    50: '#6f9b59',
    500: '#2c7212',
    950: '#000000',
  },
}
SCSS
$custom: #2c7212;
$custom-light: #6f9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7212",
  "rgb": {
    "r": 44,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 103.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48848,
    "c": 0.14397,
    "h": 139.2
  },
  "luminance": 0.12614
}

Semantic roles & 50–950 ramp

primary
#2C7212
secondary
#8A37A9
accent
#38EFBE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7212

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

Preview Lab → · Contrast checker → · Palette generator →

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