#2C7217#2C7217

#2C7217 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.9% C 0.141 H 139.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2C7217
RGBrgb(44, 114, 23)
HSLhsl(106, 66%, 27%)
HSVhsv(106, 80%, 45%)
CMYKcmyk(61.4%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.20, -39.21, 40.84)
CIE-LCHlch(42.20, 56.61, 133.84°)
OKLaboklab(48.88% -0.1078 0.0914)
OKLCHoklch(48.88% 0.141 139.7)
XYZxyz(7.2104, 12.6313, 2.8686)
Luminance0.1263 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7217 #5D1772
analogous
#5A7217 #2C7217 #177230
triadic
#2C7217 #172C72 #72172C
tetradic
#2C7217 #175A72 #5D1772 #723017
square
#2C7217 #175A72 #5D1772 #723017
split-complementary
#2C7217 #301772 #72175A
monochromatic
#0A1905 #183F0D #2C7217 #40A521 #55D52E

Accessibility & contrast

On white

5.96
#2C7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2C7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7217
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7217#FFFFFF#000000##FFFFFF
##2C72171.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#6D6121
Tritanopia (blue-blind)
#236E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c7217;
/* rgb */ color: rgb(44, 114, 23);
/* oklch */ color: oklch(48.9% 0.141 139.7);
Tailwind
colors: {
  custom: {
    50: '#6e9b5c',
    500: '#2c7217',
    950: '#000000',
  },
}
SCSS
$custom: #2c7217;
$custom-light: #6e9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7217",
  "rgb": {
    "r": 44,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 106.154,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.4888,
    "c": 0.14134,
    "h": 139.7
  },
  "luminance": 0.12632
}

Semantic roles & 50–950 ramp

primary
#2C7217
secondary
#8F3DA8
accent
#3EE9C2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7217

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

Preview Lab → · Contrast checker → · Palette generator →

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