#2C7312#2C7312

#2C7312 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.145 H 139.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2C7312
RGBrgb(44, 115, 18)
HSLhsl(104, 73%, 26%)
HSVhsv(104, 84%, 45%)
CMYKcmyk(61.7%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.52, -39.92, 42.82)
CIE-LCHlch(42.52, 58.54, 133.00°)
OKLaboklab(49.13% -0.11 0.0948)
OKLCHoklch(49.13% 0.145 139.2)
XYZxyz(7.2783, 12.8400, 2.6670)
Luminance0.1284 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7312 #591273
analogous
#5C7312 #2C7312 #127329
triadic
#2C7312 #122C73 #73122C
tetradic
#2C7312 #125C73 #591273 #732912
square
#2C7312 #125C73 #591273 #732912
split-complementary
#2C7312 #291273 #73125C
monochromatic
#0A1A04 #183E0A #2C7312 #40A81A #55DD23

Accessibility & contrast

On white

5.89
#2C7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2C7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7312
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7312#FFFFFF#000000##FFFFFF
##2C73121.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E621E
Tritanopia (blue-blind)
#246F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c7312;
/* rgb */ color: rgb(44, 115, 18);
/* oklch */ color: oklch(49.1% 0.145 139.2);
Tailwind
colors: {
  custom: {
    50: '#6f9c5a',
    500: '#2c7312',
    950: '#000000',
  },
}
SCSS
$custom: #2c7312;
$custom-light: #6f9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7312",
  "rgb": {
    "r": 44,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 103.918,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49134,
    "c": 0.14519,
    "h": 139.2
  },
  "luminance": 0.12841
}

Semantic roles & 50–950 ramp

primary
#2C7312
secondary
#8B37AA
accent
#38F0BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7312

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

Preview Lab → · Contrast checker → · Palette generator →

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