#228E31#228E31

#228E31 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.8% C 0.162 H 145.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#228E31
RGBrgb(34, 142, 49)
HSLhsl(128, 61%, 35%)
HSVhsv(128, 76%, 56%)
CMYKcmyk(76.1%, 0%, 65.5%, 44.3%)
CIE-LABlab(51.73, -49.13, 39.94)
CIE-LCHlch(51.73, 63.32, 140.89°)
OKLaboklab(56.77% -0.1326 0.093)
OKLCHoklch(56.77% 0.162 145)
XYZxyz(10.8863, 19.9066, 6.1738)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E31 #8E227F
analogous
#498E22 #228E31 #228E67
triadic
#228E31 #31228E #8E3122
tetradic
#228E31 #22498E #8E227F #8E6722
square
#228E31 #22498E #8E227F #8E6722
split-complementary
#228E31 #67228E #8E2249
monochromatic
#0A2B0F #165D20 #228E31 #2EBF42 #54D666

Accessibility & contrast

On white

4.22
#228E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#228E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E31
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E31#FFFFFF#000000##000000
##228E311.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#908026
Deuteranopia (green-blind)
#847839
Tritanopia (blue-blind)
#008A7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e31;
/* rgb */ color: rgb(34, 142, 49);
/* oklch */ color: oklch(56.8% 0.162 145.0);
Tailwind
colors: {
  custom: {
    50: '#6fb06d',
    500: '#228e31',
    950: '#000000',
  },
}
SCSS
$custom: #228e31;
$custom-light: #6fb06d;
$custom-dark: #000000;
JSON
{
  "hex": "#228e31",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 49
  },
  "hsl": {
    "h": 128.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56765,
    "c": 0.162,
    "h": 145
  },
  "luminance": 0.19908
}

Semantic roles & 50–950 ramp

primary
#228E31
secondary
#BA52AB
accent
#43CEE4
background
#F7FAF6
surface
#EDF5EC
border
#C8CFC7
text
#091107
muted
#7B807A

Preview Lab

Preview with #228E31

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

Preview Lab → · Contrast checker → · Palette generator →

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