#2C7D18#2C7D18

#2C7D18 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.154 H 140.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2C7D18
RGBrgb(44, 125, 24)
HSLhsl(108, 68%, 29%)
HSVhsv(108, 81%, 49%)
CMYKcmyk(64.8%, 0%, 80.8%, 51%)
CIE-LABlab(46.00, -43.32, 44.16)
CIE-LCHlch(46.00, 61.86, 134.45°)
OKLaboklab(52.02% -0.1188 0.0985)
OKLCHoklch(52.02% 0.154 140.3)
XYZxyz(8.5368, 15.2678, 3.3611)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7D18 #69187D
analogous
#5F7D18 #2C7D18 #187D37
triadic
#2C7D18 #182C7D #7D182C
tetradic
#2C7D18 #185F7D #69187D #7D3718
square
#2C7D18 #185F7D #69187D #7D3718
split-complementary
#2C7D18 #37187D #7D185F
monochromatic
#091A05 #1A4A0E #2C7D18 #3EB022 #57D937

Accessibility & contrast

On white

5.18
#2C7D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2C7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7D18
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7D18#FFFFFF#000000##FFFFFF
##2C7D181.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A24
Tritanopia (blue-blind)
#20796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2c7d18;
/* rgb */ color: rgb(44, 125, 24);
/* oklch */ color: oklch(52.0% 0.154 140.3);
Tailwind
colors: {
  custom: {
    50: '#71a35e',
    500: '#2c7d18',
    950: '#000000',
  },
}
SCSS
$custom: #2c7d18;
$custom-light: #71a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7d18",
  "rgb": {
    "r": 44,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 108.119,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52021,
    "c": 0.15431,
    "h": 140.3
  },
  "luminance": 0.15269
}

Semantic roles & 50–950 ramp

primary
#2C7D18
secondary
#9B3FB2
accent
#3DEBC8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2C7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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