#228F22#228F22

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

Color values

HEX#228F22
RGBrgb(34, 143, 34)
HSLhsl(120, 62%, 35%)
HSVhsv(120, 76%, 56%)
CMYKcmyk(76.2%, 0%, 76.2%, 43.9%)
CIE-LABlab(51.95, -50.93, 46.38)
CIE-LCHlch(51.95, 68.88, 137.68°)
OKLaboklab(56.91% -0.1383 0.1047)
OKLCHoklch(56.91% 0.173 142.9)
XYZxyz(10.7702, 20.0993, 4.8250)
Luminance0.2010 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F22 #8F228F
analogous
#598F22 #228F22 #228F59
triadic
#228F22 #22228F #8F2222
tetradic
#228F22 #22598F #8F228F #8F5922
square
#228F22 #22598F #8F228F #8F5922
split-complementary
#228F22 #59228F #8F2259
monochromatic
#0A2C0A #165E16 #228F22 #2EC02E #55D755

Accessibility & contrast

On white

4.18
#228F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##228F22#FFFFFF#000000##000000
##228F221.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #228f22;
/* rgb */ color: rgb(34, 143, 34);
/* oklch */ color: oklch(56.9% 0.173 142.9);
Tailwind
colors: {
  custom: {
    50: '#70b165',
    500: '#228f22',
    950: '#000000',
  },
}
SCSS
$custom: #228f22;
$custom-light: #70b165;
$custom-dark: #000000;
JSON
{
  "hex": "#228f22",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.56907,
    "c": 0.1734,
    "h": 142.9
  },
  "luminance": 0.201
}

Semantic roles & 50–950 ramp

primary
#228F22
secondary
#BA52BA
accent
#43E5E5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228F22

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

Preview Lab → · Contrast checker → · Palette generator →

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