#2C7818#2C7818

#2C7818 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.6% C 0.148 H 140.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#2C7818
RGBrgb(44, 120, 24)
HSLhsl(108, 67%, 28%)
HSVhsv(108, 80%, 47%)
CMYKcmyk(63.3%, 0%, 80%, 52.9%)
CIE-LABlab(44.28, -41.45, 42.50)
CIE-LCHlch(44.28, 59.36, 134.28°)
OKLaboklab(50.6% -0.1137 0.0951)
OKLCHoklch(50.6% 0.148 140.1)
XYZxyz(7.9197, 14.0336, 3.1554)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7818 #641878
analogous
#5C7818 #2C7818 #187834
triadic
#2C7818 #182C78 #78182C
tetradic
#2C7818 #185C78 #641878 #783418
square
#2C7818 #185C78 #641878 #783418
split-complementary
#2C7818 #341878 #78185C
monochromatic
#091A05 #19450E #2C7818 #3FAB22 #56D634

Accessibility & contrast

On white

5.52
#2C7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#2C7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7818
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7818#FFFFFF#000000##FFFFFF
##2C78181.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D02
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#217466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2c7818;
/* rgb */ color: rgb(44, 120, 24);
/* oklch */ color: oklch(50.6% 0.148 140.1);
Tailwind
colors: {
  custom: {
    50: '#70a05d',
    500: '#2c7818',
    950: '#000000',
  },
}
SCSS
$custom: #2c7818;
$custom-light: #70a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7818",
  "rgb": {
    "r": 44,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 107.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.506,
    "c": 0.14823,
    "h": 140.1
  },
  "luminance": 0.14034
}

Semantic roles & 50–950 ramp

primary
#2C7818
secondary
#963FAD
accent
#3EEAC6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2C7818

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

Preview Lab → · Contrast checker → · Palette generator →

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