#2C7F18#2C7F18

#2C7F18 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.157 H 140.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2C7F18
RGBrgb(44, 127, 24)
HSLhsl(108, 68%, 30%)
HSVhsv(108, 81%, 50%)
CMYKcmyk(65.4%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.68, -44.06, 44.81)
CIE-LCHlch(46.68, 62.84, 134.51°)
OKLaboklab(52.59% -0.1208 0.0999)
OKLCHoklch(52.59% 0.157 140.4)
XYZxyz(8.7925, 15.7793, 3.4463)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7F18 #6B187F
analogous
#5F7F18 #2C7F18 #187F38
triadic
#2C7F18 #182C7F #7F182C
tetradic
#2C7F18 #185F7F #6B187F #7F3818
square
#2C7F18 #185F7F #6B187F #7F3818
split-complementary
#2C7F18 #38187F #7F185F
monochromatic
#091A05 #1A4C0E #2C7F18 #3EB222 #57D938

Accessibility & contrast

On white

5.05
#2C7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2C7F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7F18
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7F18#FFFFFF#000000##FFFFFF
##2C7F181.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#1F7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2c7f18;
/* rgb */ color: rgb(44, 127, 24);
/* oklch */ color: oklch(52.6% 0.157 140.4);
Tailwind
colors: {
  custom: {
    50: '#71a55e',
    500: '#2c7f18',
    950: '#000000',
  },
}
SCSS
$custom: #2c7f18;
$custom-light: #71a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7f18",
  "rgb": {
    "r": 44,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 108.35,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52588,
    "c": 0.15672,
    "h": 140.4
  },
  "luminance": 0.1578
}

Semantic roles & 50–950 ramp

primary
#2C7F18
secondary
#9D3FB3
accent
#3DEBC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2C7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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