#228F20#228F20

#228F20 is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.175 H 142.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#228F20
RGBrgb(34, 143, 32)
HSLhsl(119, 63%, 34%)
HSVhsv(119, 78%, 56%)
CMYKcmyk(76.2%, 0%, 77.6%, 43.9%)
CIE-LABlab(51.94, -51.09, 47.09)
CIE-LCHlch(51.94, 69.48, 137.33°)
OKLaboklab(56.89% -0.1388 0.1059)
OKLCHoklch(56.89% 0.175 142.7)
XYZxyz(10.7422, 20.0881, 4.6775)
Luminance0.2009 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F20 #8D208F
analogous
#5A8F20 #228F20 #208F56
triadic
#228F20 #20228F #8F2022
tetradic
#228F20 #205A8F #8D208F #8F5620
square
#228F20 #205A8F #8D208F #8F5620
split-complementary
#228F20 #56208F #8F205A
monochromatic
#0A2B0A #165D15 #228F20 #2EC12B #54D851

Accessibility & contrast

On white

4.19
#228F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#228F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F20
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F20#FFFFFF#000000##000000
##228F201.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928106
Deuteranopia (green-blind)
#86792C
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f20;
/* rgb */ color: rgb(34, 143, 32);
/* oklch */ color: oklch(56.9% 0.175 142.7);
Tailwind
colors: {
  custom: {
    50: '#70b164',
    500: '#228f20',
    950: '#000000',
  },
}
SCSS
$custom: #228f20;
$custom-light: #70b164;
$custom-dark: #000000;
JSON
{
  "hex": "#228f20",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 118.919,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56892,
    "c": 0.17454,
    "h": 142.7
  },
  "luminance": 0.20089
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #228F20

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

Preview Lab → · Contrast checker → · Palette generator →

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