#2C7017#2C7017

#2C7017 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.3% C 0.139 H 139.6°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2C7017
RGBrgb(44, 112, 23)
HSLhsl(106, 66%, 26%)
HSVhsv(106, 79%, 44%)
CMYKcmyk(60.7%, 0%, 79.5%, 56.1%)
CIE-LABlab(41.51, -38.43, 40.16)
CIE-LCHlch(41.51, 55.58, 133.74°)
OKLaboklab(48.31% -0.1057 0.09)
OKLCHoklch(48.31% 0.139 139.6)
XYZxyz(6.9872, 12.1851, 2.7942)
Luminance0.1219 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7017 #5B1770
analogous
#597017 #2C7017 #17702F
triadic
#2C7017 #172C70 #70172C
tetradic
#2C7017 #175970 #5B1770 #702F17
square
#2C7017 #175970 #5B1770 #702F17
split-complementary
#2C7017 #2F1770 #701759
monochromatic
#0A1905 #183D0D #2C7017 #40A321 #55D42D

Accessibility & contrast

On white

6.11
#2C7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2C7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7017
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7017#FFFFFF#000000##FFFFFF
##2C70171.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736504
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#246C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2c7017;
/* rgb */ color: rgb(44, 112, 23);
/* oklch */ color: oklch(48.3% 0.139 139.6);
Tailwind
colors: {
  custom: {
    50: '#6e9a5b',
    500: '#2c7017',
    950: '#000000',
  },
}
SCSS
$custom: #2c7017;
$custom-light: #6e9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7017",
  "rgb": {
    "r": 44,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 105.843,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48306,
    "c": 0.13881,
    "h": 139.6
  },
  "luminance": 0.12186
}

Semantic roles & 50–950 ramp

primary
#2C7017
secondary
#8D3DA6
accent
#3FE9C1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7017

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

Preview Lab → · Contrast checker → · Palette generator →

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