#228C21#228C21

#228C21 is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.1% C 0.171 H 142.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#228C21
RGBrgb(34, 140, 33)
HSLhsl(119, 62%, 34%)
HSVhsv(119, 76%, 55%)
CMYKcmyk(75.7%, 0%, 76.4%, 45.1%)
CIE-LABlab(50.93, -50.00, 45.72)
CIE-LCHlch(50.93, 67.76, 137.56°)
OKLaboklab(56.06% -0.1358 0.1032)
OKLCHoklch(56.06% 0.171 142.8)
XYZxyz(10.3117, 19.2049, 4.6020)
Luminance0.1921 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C21 #8B218C
analogous
#588C21 #228C21 #218C56
triadic
#228C21 #21228C #8C2122
tetradic
#228C21 #21588C #8B218C #8C5621
square
#228C21 #21588C #8B218C #8C5621
split-complementary
#228C21 #56218C #8C2158
monochromatic
#0A290A #165A15 #228C21 #2EBE2D #53D651

Accessibility & contrast

On white

4.34
#228C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#228C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228C21
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228C21#FFFFFF#000000##000000
##228C211.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#83762D
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228c21;
/* rgb */ color: rgb(34, 140, 33);
/* oklch */ color: oklch(56.1% 0.171 142.8);
Tailwind
colors: {
  custom: {
    50: '#70af64',
    500: '#228c21',
    950: '#000000',
  },
}
SCSS
$custom: #228c21;
$custom-light: #70af64;
$custom-dark: #000000;
JSON
{
  "hex": "#228c21",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 119.439,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56055,
    "c": 0.17053,
    "h": 142.8
  },
  "luminance": 0.19206
}

Semantic roles & 50–950 ramp

primary
#228C21
secondary
#B84FB9
accent
#43E5E3
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228C21

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

Preview Lab → · Contrast checker → · Palette generator →

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