#2C7417#2C7417

#2C7417 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.5% C 0.144 H 139.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#2C7417
RGBrgb(44, 116, 23)
HSLhsl(106, 67%, 27%)
HSVhsv(106, 80%, 45%)
CMYKcmyk(62.1%, 0%, 80.2%, 54.5%)
CIE-LABlab(42.89, -39.99, 41.51)
CIE-LCHlch(42.89, 57.64, 133.93°)
OKLaboklab(49.45% -0.1099 0.0928)
OKLCHoklch(49.45% 0.144 139.8)
XYZxyz(7.4384, 13.0874, 2.9446)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7417 #5F1774
analogous
#5A7417 #2C7417 #177431
triadic
#2C7417 #172C74 #74172C
tetradic
#2C7417 #175A74 #5F1774 #743117
square
#2C7417 #175A74 #5F1774 #743117
split-complementary
#2C7417 #311774 #74175A
monochromatic
#0A1A05 #19410D #2C7417 #3FA721 #55D630

Accessibility & contrast

On white

5.80
#2C7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#2C7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7417
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7417#FFFFFF#000000##FFFFFF
##2C74171.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776902
Deuteranopia (green-blind)
#6F6321
Tritanopia (blue-blind)
#237063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2c7417;
/* rgb */ color: rgb(44, 116, 23);
/* oklch */ color: oklch(49.5% 0.144 139.8);
Tailwind
colors: {
  custom: {
    50: '#6f9d5c',
    500: '#2c7417',
    950: '#000000',
  },
}
SCSS
$custom: #2c7417;
$custom-light: #6f9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7417",
  "rgb": {
    "r": 44,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 106.452,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49452,
    "c": 0.14383,
    "h": 139.8
  },
  "luminance": 0.13088
}

Semantic roles & 50–950 ramp

primary
#2C7417
secondary
#913DA9
accent
#3EEAC3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7417

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

Preview Lab → · Contrast checker → · Palette generator →

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