#2C7F17#2C7F17

#2C7F17 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.157 H 140.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2C7F17
RGBrgb(44, 127, 23)
HSLhsl(108, 69%, 29%)
HSVhsv(108, 82%, 50%)
CMYKcmyk(65.4%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.68, -44.12, 45.13)
CIE-LCHlch(46.68, 63.12, 134.35°)
OKLaboklab(52.58% -0.121 0.1004)
OKLCHoklch(52.58% 0.157 140.3)
XYZxyz(8.7823, 15.7752, 3.3925)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7F17 #6A177F
analogous
#607F17 #2C7F17 #177F36
triadic
#2C7F17 #172C7F #7F172C
tetradic
#2C7F17 #17607F #6A177F #7F3617
square
#2C7F17 #17607F #6A177F #7F3617
split-complementary
#2C7F17 #36177F #7F1760
monochromatic
#091A05 #1A4B0E #2C7F17 #3EB320 #57DB36

Accessibility & contrast

On white

5.05
#2C7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2C7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7F17
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7F17#FFFFFF#000000##FFFFFF
##2C7F171.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#1F7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2c7f17;
/* rgb */ color: rgb(44, 127, 23);
/* oklch */ color: oklch(52.6% 0.157 140.3);
Tailwind
colors: {
  custom: {
    50: '#71a55e',
    500: '#2c7f17',
    950: '#000000',
  },
}
SCSS
$custom: #2c7f17;
$custom-light: #71a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7f17",
  "rgb": {
    "r": 44,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 107.885,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52582,
    "c": 0.15722,
    "h": 140.3
  },
  "luminance": 0.15776
}

Semantic roles & 50–950 ramp

primary
#2C7F17
secondary
#9C3EB4
accent
#3CECC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2C7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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