#228A22#228A22

#228A22 is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.168 H 142.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#228A22
RGBrgb(34, 138, 34)
HSLhsl(120, 60%, 34%)
HSVhsv(120, 75%, 54%)
CMYKcmyk(75.4%, 0%, 75.4%, 45.9%)
CIE-LABlab(50.25, -49.25, 44.67)
CIE-LCHlch(50.25, 66.49, 137.79°)
OKLaboklab(55.5% -0.1337 0.1011)
OKLCHoklch(55.5% 0.168 142.9)
XYZxyz(10.0363, 18.6314, 4.5804)
Luminance0.1863 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228A22 #8A228A
analogous
#568A22 #228A22 #228A56
triadic
#228A22 #22228A #8A2222
tetradic
#228A22 #22568A #8A228A #8A5622
square
#228A22 #22568A #8A228A #8A5622
split-complementary
#228A22 #56228A #8A2256
monochromatic
#0A280A #165916 #228A22 #2EBB2E #52D452

Accessibility & contrast

On white

4.44
#228A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#228A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228A22
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228A22#FFFFFF#000000##000000
##228A221.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0E
Deuteranopia (green-blind)
#81742D
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #228a22;
/* rgb */ color: rgb(34, 138, 34);
/* oklch */ color: oklch(55.5% 0.168 142.9);
Tailwind
colors: {
  custom: {
    50: '#6fad64',
    500: '#228a22',
    950: '#000000',
  },
}
SCSS
$custom: #228a22;
$custom-light: #6fad64;
$custom-dark: #000000;
JSON
{
  "hex": "#228a22",
  "rgb": {
    "r": 34,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.55498,
    "c": 0.16761,
    "h": 142.9
  },
  "luminance": 0.18633
}

Semantic roles & 50–950 ramp

primary
#228A22
secondary
#B850B8
accent
#44E4E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228A22

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

Preview Lab → · Contrast checker → · Palette generator →

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