#228C31#228C31

#228C31 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.160 H 145.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#228C31
RGBrgb(34, 140, 49)
HSLhsl(128, 61%, 34%)
HSVhsv(128, 76%, 55%)
CMYKcmyk(75.7%, 0%, 65%, 45.1%)
CIE-LABlab(51.06, -48.43, 39.19)
CIE-LCHlch(51.06, 62.30, 141.02°)
OKLaboklab(56.2% -0.1307 0.0914)
OKLCHoklch(56.2% 0.16 145)
XYZxyz(10.5914, 19.3168, 6.0755)
Luminance0.1932 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C31 #8C227D
analogous
#488C22 #228C31 #228C66
triadic
#228C31 #31228C #8C3122
tetradic
#228C31 #22488C #8C227D #8C6622
square
#228C31 #22488C #8C227D #8C6622
split-complementary
#228C31 #66228C #8C2248
monochromatic
#0A2A0F #165B20 #228C31 #2EBD42 #53D566

Accessibility & contrast

On white

4.32
#228C31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#228C31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C31
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C31#FFFFFF#000000##000000
##228C311.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F26
Deuteranopia (green-blind)
#827639
Tritanopia (blue-blind)
#008879
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228c31;
/* rgb */ color: rgb(34, 140, 49);
/* oklch */ color: oklch(56.2% 0.160 145.0);
Tailwind
colors: {
  custom: {
    50: '#6faf6d',
    500: '#228c31',
    950: '#000000',
  },
}
SCSS
$custom: #228c31;
$custom-light: #6faf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#228c31",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 49
  },
  "hsl": {
    "h": 128.491,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56204,
    "c": 0.15952,
    "h": 145
  },
  "luminance": 0.19318
}

Semantic roles & 50–950 ramp

primary
#228C31
secondary
#B951AA
accent
#44CDE4
background
#F7FAF6
surface
#EDF5EC
border
#C8CFC7
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228C31

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

Preview Lab → · Contrast checker → · Palette generator →

#228C31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva