#228020#228020

#228020 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.6% C 0.157 H 142.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#228020
RGBrgb(34, 128, 32)
HSLhsl(119, 60%, 31%)
HSVhsv(119, 75%, 50%)
CMYKcmyk(73.4%, 0%, 75%, 49.8%)
CIE-LABlab(46.82, -45.96, 41.95)
CIE-LCHlch(46.82, 62.23, 137.61°)
OKLaboklab(52.64% -0.1249 0.0952)
OKLCHoklch(52.64% 0.157 142.7)
XYZxyz(8.6391, 15.8818, 3.9764)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228020 #7E2080
analogous
#528020 #228020 #20804E
triadic
#228020 #202280 #802022
tetradic
#228020 #205280 #7E2080 #804E20
square
#228020 #205280 #7E2080 #804E20
split-complementary
#228020 #4E2080 #802052
monochromatic
#081E08 #154F14 #228020 #2FB12C #4CD149

Accessibility & contrast

On white

5.03
#228020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#228020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228020
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228020#FFFFFF#000000##FFFFFF
##2280201.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83730F
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#037C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #228020;
/* rgb */ color: rgb(34, 128, 32);
/* oklch */ color: oklch(52.6% 0.157 142.7);
Tailwind
colors: {
  custom: {
    50: '#6da662',
    500: '#228020',
    950: '#000000',
  },
}
SCSS
$custom: #228020;
$custom-light: #6da662;
$custom-dark: #000000;
JSON
{
  "hex": "#228020",
  "rgb": {
    "r": 34,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 118.75,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52643,
    "c": 0.15701,
    "h": 142.7
  },
  "luminance": 0.15883
}

Semantic roles & 50–950 ramp

primary
#228020
secondary
#B149B3
accent
#45E3E0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #228020

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

Preview Lab → · Contrast checker → · Palette generator →

#228020 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva