#2C7A17#2C7A17

#2C7A17 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.151 H 140.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#2C7A17
RGBrgb(44, 122, 23)
HSLhsl(107, 68%, 28%)
HSVhsv(107, 81%, 48%)
CMYKcmyk(63.9%, 0%, 81.1%, 52.2%)
CIE-LABlab(44.96, -42.27, 43.50)
CIE-LCHlch(44.96, 60.65, 134.18°)
OKLaboklab(51.16% -0.116 0.097)
OKLCHoklch(51.16% 0.151 140.1)
XYZxyz(8.1525, 14.5156, 3.1826)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7A17 #65177A
analogous
#5D7A17 #2C7A17 #177A33
triadic
#2C7A17 #172C7A #7A172C
tetradic
#2C7A17 #175D7A #65177A #7A3317
square
#2C7A17 #175D7A #65177A #7A3317
split-complementary
#2C7A17 #33177A #7A175D
monochromatic
#091A05 #19470D #2C7A17 #3FAD21 #56D933

Accessibility & contrast

On white

5.38
#2C7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2C7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7A17
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7A17#FFFFFF#000000##FFFFFF
##2C7A171.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#217668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2c7a17;
/* rgb */ color: rgb(44, 122, 23);
/* oklch */ color: oklch(51.2% 0.151 140.1);
Tailwind
colors: {
  custom: {
    50: '#70a15d',
    500: '#2c7a17',
    950: '#000000',
  },
}
SCSS
$custom: #2c7a17;
$custom-light: #70a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7a17",
  "rgb": {
    "r": 44,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 107.273,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51163,
    "c": 0.15121,
    "h": 140.1
  },
  "luminance": 0.14516
}

Semantic roles & 50–950 ramp

primary
#2C7A17
secondary
#973EAF
accent
#3DEBC6
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2C7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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