#2C7517#2C7517

#2C7517 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.145 H 139.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#2C7517
RGBrgb(44, 117, 23)
HSLhsl(107, 67%, 27%)
HSVhsv(107, 80%, 46%)
CMYKcmyk(62.4%, 0%, 80.3%, 54.1%)
CIE-LABlab(43.24, -40.37, 41.84)
CIE-LCHlch(43.24, 58.14, 133.97°)
OKLaboklab(49.74% -0.1109 0.0935)
OKLCHoklch(49.74% 0.145 139.9)
XYZxyz(7.5543, 13.3192, 2.9832)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7517 #601775
analogous
#5B7517 #2C7517 #177531
triadic
#2C7517 #172C75 #75172C
tetradic
#2C7517 #175B75 #601775 #753117
square
#2C7517 #175B75 #601775 #753117
split-complementary
#2C7517 #311775 #75175B
monochromatic
#0A1A05 #19420D #2C7517 #3FA821 #55D630

Accessibility & contrast

On white

5.73
#2C7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2C7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7517
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7517#FFFFFF#000000##FFFFFF
##2C75171.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A01
Deuteranopia (green-blind)
#6F6422
Tritanopia (blue-blind)
#237163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2c7517;
/* rgb */ color: rgb(44, 117, 23);
/* oklch */ color: oklch(49.7% 0.145 139.9);
Tailwind
colors: {
  custom: {
    50: '#6f9d5c',
    500: '#2c7517',
    950: '#000000',
  },
}
SCSS
$custom: #2c7517;
$custom-light: #6f9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7517",
  "rgb": {
    "r": 44,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 106.596,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49737,
    "c": 0.14507,
    "h": 139.9
  },
  "luminance": 0.1332
}

Semantic roles & 50–950 ramp

primary
#2C7517
secondary
#923DAA
accent
#3EEAC4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7517

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

Preview Lab → · Contrast checker → · Palette generator →

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