#2C7218#2C7218

#2C7218 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.9% C 0.141 H 139.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2C7218
RGBrgb(44, 114, 24)
HSLhsl(107, 65%, 27%)
HSVhsv(107, 79%, 45%)
CMYKcmyk(61.4%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.21, -39.14, 40.48)
CIE-LCHlch(42.21, 56.31, 134.03°)
OKLaboklab(48.89% -0.1075 0.0908)
OKLCHoklch(48.89% 0.141 139.8)
XYZxyz(7.2206, 12.6354, 2.9223)
Luminance0.1264 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7218 #5E1872
analogous
#597218 #2C7218 #187231
triadic
#2C7218 #182C72 #72182C
tetradic
#2C7218 #185972 #5E1872 #723118
square
#2C7218 #185972 #5E1872 #723118
split-complementary
#2C7218 #311872 #721859
monochromatic
#0A1905 #183F0D #2C7218 #40A523 #55D431

Accessibility & contrast

On white

5.95
#2C7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2C7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7218
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7218#FFFFFF#000000##FFFFFF
##2C72181.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6D6122
Tritanopia (blue-blind)
#236E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c7218;
/* rgb */ color: rgb(44, 114, 24);
/* oklch */ color: oklch(48.9% 0.141 139.8);
Tailwind
colors: {
  custom: {
    50: '#6e9b5c',
    500: '#2c7218',
    950: '#000000',
  },
}
SCSS
$custom: #2c7218;
$custom-light: #6e9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7218",
  "rgb": {
    "r": 44,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 106.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48887,
    "c": 0.14076,
    "h": 139.8
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#2C7218
secondary
#903EA7
accent
#40E8C3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7218

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

Preview Lab → · Contrast checker → · Palette generator →

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