#2C7A18#2C7A18

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

Color values

HEX#2C7A18
RGBrgb(44, 122, 24)
HSLhsl(108, 67%, 29%)
HSVhsv(108, 80%, 48%)
CMYKcmyk(63.9%, 0%, 80.3%, 52.2%)
CIE-LABlab(44.97, -42.20, 43.17)
CIE-LCHlch(44.97, 60.37, 134.35°)
OKLaboklab(51.17% -0.1158 0.0964)
OKLCHoklch(51.17% 0.151 140.2)
XYZxyz(8.1627, 14.5197, 3.2364)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7A18 #66187A
analogous
#5D7A18 #2C7A18 #187A35
triadic
#2C7A18 #182C7A #7A182C
tetradic
#2C7A18 #185D7A #66187A #7A3518
square
#2C7A18 #185D7A #66187A #7A3518
split-complementary
#2C7A18 #35187A #7A185D
monochromatic
#091A05 #1A470E #2C7A18 #3EAD22 #56D735

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C7A18#FFFFFF#000000##FFFFFF
##2C7A181.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)
#7D6E00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#217668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2c7a18;
/* rgb */ color: rgb(44, 122, 24);
/* oklch */ color: oklch(51.2% 0.151 140.2);
Tailwind
colors: {
  custom: {
    50: '#70a15d',
    500: '#2c7a18',
    950: '#000000',
  },
}
SCSS
$custom: #2c7a18;
$custom-light: #70a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7a18",
  "rgb": {
    "r": 44,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 107.755,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51169,
    "c": 0.15068,
    "h": 140.2
  },
  "luminance": 0.1452
}

Semantic roles & 50–950 ramp

primary
#2C7A18
secondary
#983FAF
accent
#3EEAC7
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2C7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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