#2C7D17#2C7D17

#2C7D17 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.155 H 140.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2C7D17
RGBrgb(44, 125, 23)
HSLhsl(108, 69%, 29%)
HSVhsv(108, 82%, 49%)
CMYKcmyk(64.8%, 0%, 81.6%, 51%)
CIE-LABlab(45.99, -43.38, 44.48)
CIE-LCHlch(45.99, 62.14, 134.28°)
OKLaboklab(52.02% -0.119 0.099)
OKLCHoklch(52.02% 0.155 140.2)
XYZxyz(8.5266, 15.2637, 3.3073)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7D17 #68177D
analogous
#5F7D17 #2C7D17 #177D35
triadic
#2C7D17 #172C7D #7D172C
tetradic
#2C7D17 #175F7D #68177D #7D3517
square
#2C7D17 #175F7D #68177D #7D3517
split-complementary
#2C7D17 #35177D #7D175F
monochromatic
#091A05 #1A490D #2C7D17 #3EB121 #57DA35

Accessibility & contrast

On white

5.18
#2C7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2C7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7D17
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7D17#FFFFFF#000000##FFFFFF
##2C7D171.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A23
Tritanopia (blue-blind)
#20796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2c7d17;
/* rgb */ color: rgb(44, 125, 23);
/* oklch */ color: oklch(52.0% 0.155 140.2);
Tailwind
colors: {
  custom: {
    50: '#71a35d',
    500: '#2c7d17',
    950: '#000000',
  },
}
SCSS
$custom: #2c7d17;
$custom-light: #71a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7d17",
  "rgb": {
    "r": 44,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 107.647,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52015,
    "c": 0.15483,
    "h": 140.2
  },
  "luminance": 0.15265
}

Semantic roles & 50–950 ramp

primary
#2C7D17
secondary
#9A3EB2
accent
#3CECC8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2C7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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