#2C8228#2C8228

#2C8228 is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.6% C 0.150 H 142.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#2C8228
RGBrgb(44, 130, 40)
HSLhsl(117, 53%, 33%)
HSVhsv(117, 69%, 51%)
CMYKcmyk(66.2%, 0%, 69.2%, 49%)
CIE-LABlab(47.82, -43.83, 39.75)
CIE-LCHlch(47.82, 59.17, 137.80°)
OKLaboklab(53.57% -0.1192 0.0915)
OKLCHoklch(53.57% 0.15 142.5)
XYZxyz(9.4038, 16.6530, 4.7258)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C8228 #7E2882
analogous
#598228 #2C8228 #288251
triadic
#2C8228 #282C82 #82282C
tetradic
#2C8228 #285982 #7E2882 #825128
square
#2C8228 #285982 #7E2882 #825128
split-complementary
#2C8228 #512882 #822859
monochromatic
#0C240B #1C531A #2C8228 #3CB136 #5ECC59

Accessibility & contrast

On white

4.85
#2C8228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#2C8228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C8228
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C8228#FFFFFF#000000##FFFFFF
##2C82281.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85761C
Deuteranopia (green-blind)
#7B6F30
Tritanopia (blue-blind)
#1B7E70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2c8228;
/* rgb */ color: rgb(44, 130, 40);
/* oklch */ color: oklch(53.6% 0.150 142.5);
Tailwind
colors: {
  custom: {
    50: '#71a767',
    500: '#2c8228',
    950: '#000000',
  },
}
SCSS
$custom: #2c8228;
$custom-light: #71a767;
$custom-dark: #000000;
JSON
{
  "hex": "#2c8228",
  "rgb": {
    "r": 44,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 117.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53565,
    "c": 0.15032,
    "h": 142.5
  },
  "luminance": 0.16654
}

Semantic roles & 50–950 ramp

primary
#2C8228
secondary
#AD55B1
accent
#4BDCD6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2C8228

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

Preview Lab → · Contrast checker → · Palette generator →

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