#228022#228022

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

Color values

HEX#228022
RGBrgb(34, 128, 34)
HSLhsl(120, 58%, 32%)
HSVhsv(120, 73%, 50%)
CMYKcmyk(73.4%, 0%, 73.4%, 49.8%)
CIE-LABlab(46.83, -45.78, 41.17)
CIE-LCHlch(46.83, 61.57, 138.04°)
OKLaboklab(52.66% -0.1243 0.0938)
OKLCHoklch(52.66% 0.156 143)
XYZxyz(8.6671, 15.8930, 4.1239)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228022 #802280
analogous
#518022 #228022 #228051
triadic
#228022 #222280 #802222
tetradic
#228022 #225180 #802280 #805122
square
#228022 #225180 #802280 #805122
split-complementary
#228022 #512280 #802251
monochromatic
#081F08 #155015 #228022 #2FB02F #4DD04D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228022#FFFFFF#000000##FFFFFF
##2280221.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)
#837413
Deuteranopia (green-blind)
#786C2B
Tritanopia (blue-blind)
#027C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #228022;
/* rgb */ color: rgb(34, 128, 34);
/* oklch */ color: oklch(52.7% 0.156 143.0);
Tailwind
colors: {
  custom: {
    50: '#6da663',
    500: '#228022',
    950: '#000000',
  },
}
SCSS
$custom: #228022;
$custom-light: #6da663;
$custom-dark: #000000;
JSON
{
  "hex": "#228022",
  "rgb": {
    "r": 34,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5266,
    "c": 0.15571,
    "h": 143
  },
  "luminance": 0.15894
}

Semantic roles & 50–950 ramp

primary
#228022
secondary
#B24BB2
accent
#47E1E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #228022

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

Preview Lab → · Contrast checker → · Palette generator →

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