#2C7817#2C7817

#2C7817 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.6% C 0.149 H 140.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#2C7817
RGBrgb(44, 120, 23)
HSLhsl(107, 68%, 28%)
HSVhsv(107, 81%, 47%)
CMYKcmyk(63.3%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.28, -41.51, 42.84)
CIE-LCHlch(44.28, 59.66, 134.10°)
OKLaboklab(50.59% -0.114 0.0956)
OKLCHoklch(50.59% 0.149 140)
XYZxyz(7.9095, 14.0295, 3.1016)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7817 #631778
analogous
#5C7817 #2C7817 #177832
triadic
#2C7817 #172C78 #78172C
tetradic
#2C7817 #175C78 #631778 #783217
square
#2C7817 #175C78 #631778 #783217
split-complementary
#2C7817 #321778 #78175C
monochromatic
#091A05 #19450D #2C7817 #3FAB21 #56D832

Accessibility & contrast

On white

5.52
#2C7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#2C7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7817
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7817#FFFFFF#000000##FFFFFF
##2C78171.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#227466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2c7817;
/* rgb */ color: rgb(44, 120, 23);
/* oklch */ color: oklch(50.6% 0.149 140.0);
Tailwind
colors: {
  custom: {
    50: '#70a05c',
    500: '#2c7817',
    950: '#000000',
  },
}
SCSS
$custom: #2c7817;
$custom-light: #70a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7817",
  "rgb": {
    "r": 44,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 107.01,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50593,
    "c": 0.14878,
    "h": 140
  },
  "luminance": 0.1403
}

Semantic roles & 50–950 ramp

primary
#2C7817
secondary
#953EAD
accent
#3DEBC5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2C7817

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

Preview Lab → · Contrast checker → · Palette generator →

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