#2C7828#2C7828

#2C7828 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.137 H 142.5°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#2C7828
RGBrgb(44, 120, 40)
HSLhsl(117, 50%, 31%)
HSVhsv(117, 67%, 47%)
CMYKcmyk(63.3%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.41, -40.00, 36.02)
CIE-LCHlch(44.41, 53.83, 137.99°)
OKLaboklab(50.74% -0.1089 0.0836)
OKLCHoklch(50.74% 0.137 142.5)
XYZxyz(8.1377, 14.1208, 4.3038)
Luminance0.1412 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7828 #742878
analogous
#547828 #2C7828 #28784C
triadic
#2C7828 #282C78 #78282C
tetradic
#2C7828 #285478 #742878 #784C28
square
#2C7828 #285478 #742878 #784C28
split-complementary
#2C7828 #4C2878 #782854
monochromatic
#0A1C09 #1B4A19 #2C7828 #3DA637 #5AC654

Accessibility & contrast

On white

5.49
#2C7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2C7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7828
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7828#FFFFFF#000000##FFFFFF
##2C78281.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#71672F
Tritanopia (blue-blind)
#1F7467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2c7828;
/* rgb */ color: rgb(44, 120, 40);
/* oklch */ color: oklch(50.7% 0.137 142.5);
Tailwind
colors: {
  custom: {
    50: '#6fa066',
    500: '#2c7828',
    950: '#000000',
  },
}
SCSS
$custom: #2c7828;
$custom-light: #6fa066;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7828",
  "rgb": {
    "r": 44,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 117,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.50743,
    "c": 0.13728,
    "h": 142.5
  },
  "luminance": 0.14122
}

Semantic roles & 50–950 ramp

primary
#2C7828
secondary
#A652AA
accent
#4EDAD3
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2C7828

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

Preview Lab → · Contrast checker → · Palette generator →

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