#228C20#228C20

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

Color values

HEX#228C20
RGBrgb(34, 140, 32)
HSLhsl(119, 63%, 34%)
HSVhsv(119, 77%, 55%)
CMYKcmyk(75.7%, 0%, 77.1%, 45.1%)
CIE-LABlab(50.92, -50.08, 46.08)
CIE-LCHlch(50.92, 68.06, 137.38°)
OKLaboklab(56.05% -0.136 0.1038)
OKLCHoklch(56.05% 0.171 142.7)
XYZxyz(10.2979, 19.1994, 4.5293)
Luminance0.1920 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C20 #8A208C
analogous
#588C20 #228C20 #208C54
triadic
#228C20 #20228C #8C2022
tetradic
#228C20 #20588C #8A208C #8C5420
square
#228C20 #20588C #8A208C #8C5420
split-complementary
#228C20 #54208C #8C2058
monochromatic
#0A2809 #165A15 #228C20 #2EBE2B #52D750

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228C20#FFFFFF#000000##000000
##228C201.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)
#8F7E08
Deuteranopia (green-blind)
#83762C
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228c20;
/* rgb */ color: rgb(34, 140, 32);
/* oklch */ color: oklch(56.0% 0.171 142.7);
Tailwind
colors: {
  custom: {
    50: '#70af64',
    500: '#228c20',
    950: '#000000',
  },
}
SCSS
$custom: #228c20;
$custom-light: #70af64;
$custom-dark: #000000;
JSON
{
  "hex": "#228c20",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 118.889,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56048,
    "c": 0.17111,
    "h": 142.7
  },
  "luminance": 0.19201
}

Semantic roles & 50–950 ramp

primary
#228C20
secondary
#B84EBA
accent
#42E6E3
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228C20

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

Preview Lab → · Contrast checker → · Palette generator →

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