#228E21#228E21

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

Color values

HEX#228E21
RGBrgb(34, 142, 33)
HSLhsl(119, 62%, 34%)
HSVhsv(119, 77%, 56%)
CMYKcmyk(76.1%, 0%, 76.8%, 44.3%)
CIE-LABlab(51.60, -50.68, 46.40)
CIE-LCHlch(51.60, 68.71, 137.52°)
OKLaboklab(56.62% -0.1376 0.1046)
OKLCHoklch(56.62% 0.173 142.8)
XYZxyz(10.6066, 19.7947, 4.7003)
Luminance0.1980 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E21 #8D218E
analogous
#588E21 #228E21 #218E57
triadic
#228E21 #21228E #8E2122
tetradic
#228E21 #21588E #8D218E #8E5721
square
#228E21 #21588E #8D218E #8E5721
split-complementary
#228E21 #57218E #8E2158
monochromatic
#0A2B0A #165C15 #228E21 #2EC02D #54D752

Accessibility & contrast

On white

4.23
#228E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##228E21#FFFFFF#000000##000000
##228E211.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#85782D
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e21;
/* rgb */ color: rgb(34, 142, 33);
/* oklch */ color: oklch(56.6% 0.173 142.8);
Tailwind
colors: {
  custom: {
    50: '#70b064',
    500: '#228e21',
    950: '#000000',
  },
}
SCSS
$custom: #228e21;
$custom-light: #70b064;
$custom-dark: #000000;
JSON
{
  "hex": "#228e21",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 119.45,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56618,
    "c": 0.17283,
    "h": 142.8
  },
  "luminance": 0.19796
}

Semantic roles & 50–950 ramp

primary
#228E21
secondary
#B950BA
accent
#42E5E4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228E21

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

Preview Lab → · Contrast checker → · Palette generator →

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