#228F21#228F21

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

Color values

HEX#228F21
RGBrgb(34, 143, 33)
HSLhsl(119, 63%, 35%)
HSVhsv(119, 77%, 56%)
CMYKcmyk(76.2%, 0%, 76.9%, 43.9%)
CIE-LABlab(51.94, -51.01, 46.74)
CIE-LCHlch(51.94, 69.18, 137.50°)
OKLaboklab(56.9% -0.1385 0.1053)
OKLCHoklch(56.9% 0.174 142.8)
XYZxyz(10.7560, 20.0936, 4.7501)
Luminance0.2009 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F21 #8E218F
analogous
#598F21 #228F21 #218F57
triadic
#228F21 #21228F #8F2122
tetradic
#228F21 #21598F #8E218F #8F5721
square
#228F21 #21598F #8E218F #8F5721
split-complementary
#228F21 #57218F #8F2159
monochromatic
#0A2C0A #165D16 #228F21 #2EC12C #54D753

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228F21#FFFFFF#000000##000000
##228F211.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)
#928109
Deuteranopia (green-blind)
#86792D
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f21;
/* rgb */ color: rgb(34, 143, 33);
/* oklch */ color: oklch(56.9% 0.174 142.8);
Tailwind
colors: {
  custom: {
    50: '#70b164',
    500: '#228f21',
    950: '#000000',
  },
}
SCSS
$custom: #228f21;
$custom-light: #70b164;
$custom-dark: #000000;
JSON
{
  "hex": "#228f21",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 119.455,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.569,
    "c": 0.17399,
    "h": 142.8
  },
  "luminance": 0.20095
}

Semantic roles & 50–950 ramp

primary
#228F21
secondary
#BA51BB
accent
#42E6E4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228F21

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

Preview Lab → · Contrast checker → · Palette generator →

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