#228E20#228E20

#228E20 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.6% C 0.173 H 142.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#228E20
RGBrgb(34, 142, 32)
HSLhsl(119, 63%, 34%)
HSVhsv(119, 77%, 56%)
CMYKcmyk(76.1%, 0%, 77.5%, 44.3%)
CIE-LABlab(51.60, -50.75, 46.75)
CIE-LCHlch(51.60, 69.01, 137.35°)
OKLaboklab(56.61% -0.1379 0.1052)
OKLCHoklch(56.61% 0.173 142.7)
XYZxyz(10.5928, 19.7892, 4.6276)
Luminance0.1979 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E20 #8C208E
analogous
#598E20 #228E20 #208E55
triadic
#228E20 #20228E #8E2022
tetradic
#228E20 #20598E #8C208E #8E5520
square
#228E20 #20598E #8C208E #8E5520
split-complementary
#228E20 #55208E #8E2059
monochromatic
#0A2A09 #165C15 #228E20 #2EC02B #53D851

Accessibility & contrast

On white

4.24
#228E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#228E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E20
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E20#FFFFFF#000000##000000
##228E201.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918007
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e20;
/* rgb */ color: rgb(34, 142, 32);
/* oklch */ color: oklch(56.6% 0.173 142.7);
Tailwind
colors: {
  custom: {
    50: '#70b064',
    500: '#228e20',
    950: '#000000',
  },
}
SCSS
$custom: #228e20;
$custom-light: #70b064;
$custom-dark: #000000;
JSON
{
  "hex": "#228e20",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 118.909,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56611,
    "c": 0.1734,
    "h": 142.7
  },
  "luminance": 0.1979
}

Semantic roles & 50–950 ramp

primary
#228E20
secondary
#B94FBB
accent
#42E6E3
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228E20

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

Preview Lab → · Contrast checker → · Palette generator →

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