#2C7928#2C7928

#2C7928 is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.139 H 142.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#2C7928
RGBrgb(44, 121, 40)
HSLhsl(117, 50%, 32%)
HSVhsv(117, 67%, 47%)
CMYKcmyk(63.6%, 0%, 66.9%, 52.5%)
CIE-LABlab(44.75, -40.39, 36.40)
CIE-LCHlch(44.75, 54.37, 137.97°)
OKLaboklab(51.03% -0.1099 0.0844)
OKLCHoklch(51.03% 0.139 142.5)
XYZxyz(8.2586, 14.3626, 4.3441)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7928 #752879
analogous
#557928 #2C7928 #28794D
triadic
#2C7928 #282C79 #79282C
tetradic
#2C7928 #285579 #752879 #794D28
square
#2C7928 #285579 #752879 #794D28
split-complementary
#2C7928 #4D2879 #792855
monochromatic
#0B1D0A #1B4B19 #2C7928 #3DA737 #5AC755

Accessibility & contrast

On white

5.42
#2C7928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2C7928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7928
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7928#FFFFFF#000000##FFFFFF
##2C79281.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#72672F
Tritanopia (blue-blind)
#1E7568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2c7928;
/* rgb */ color: rgb(44, 121, 40);
/* oklch */ color: oklch(51.0% 0.139 142.5);
Tailwind
colors: {
  custom: {
    50: '#6fa066',
    500: '#2c7928',
    950: '#000000',
  },
}
SCSS
$custom: #2c7928;
$custom-light: #6fa066;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7928",
  "rgb": {
    "r": 44,
    "g": 121,
    "b": 40
  },
  "hsl": {
    "h": 117.037,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.51026,
    "c": 0.13861,
    "h": 142.5
  },
  "luminance": 0.14363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C7928

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

Preview Lab → · Contrast checker → · Palette generator →

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