#228D22#228D22

#228D22 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.3% C 0.171 H 142.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#228D22
RGBrgb(34, 141, 34)
HSLhsl(120, 61%, 34%)
HSVhsv(120, 76%, 55%)
CMYKcmyk(75.9%, 0%, 75.9%, 44.7%)
CIE-LABlab(51.27, -50.26, 45.70)
CIE-LCHlch(51.27, 67.93, 137.72°)
OKLaboklab(56.34% -0.1364 0.1033)
OKLCHoklch(56.34% 0.171 142.9)
XYZxyz(10.4727, 19.5041, 4.7258)
Luminance0.1951 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D22 #8D228D
analogous
#588D22 #228D22 #228D58
triadic
#228D22 #22228D #8D2222
tetradic
#228D22 #22588D #8D228D #8D5822
square
#228D22 #22588D #8D228D #8D5822
split-complementary
#228D22 #58228D #8D2258
monochromatic
#0A2A0A #165C16 #228D22 #2EBE2E #54D654

Accessibility & contrast

On white

4.28
#228D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#228D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D22
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D22#FFFFFF#000000##000000
##228D221.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#84772D
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228d22;
/* rgb */ color: rgb(34, 141, 34);
/* oklch */ color: oklch(56.3% 0.171 142.9);
Tailwind
colors: {
  custom: {
    50: '#70af65',
    500: '#228d22',
    950: '#000000',
  },
}
SCSS
$custom: #228d22;
$custom-light: #70af65;
$custom-dark: #000000;
JSON
{
  "hex": "#228d22",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56344,
    "c": 0.1711,
    "h": 142.9
  },
  "luminance": 0.19505
}

Semantic roles & 50–950 ramp

primary
#228D22
secondary
#B951B9
accent
#44E4E4
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228D22

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

Preview Lab → · Contrast checker → · Palette generator →

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