#228122#228122

#228122 is a mid, vivid green. Relative luminance 0.162; OKLCH L 52.9% C 0.157 H 143.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#228122
RGBrgb(34, 129, 34)
HSLhsl(120, 58%, 32%)
HSVhsv(120, 74%, 51%)
CMYKcmyk(73.6%, 0%, 73.6%, 49.4%)
CIE-LABlab(47.18, -46.14, 41.52)
CIE-LCHlch(47.18, 62.07, 138.01°)
OKLaboklab(52.95% -0.1252 0.0945)
OKLCHoklch(52.95% 0.157 143)
XYZxyz(8.7981, 16.1551, 4.1676)
Luminance0.1616 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228122 #812281
analogous
#528122 #228122 #228152
triadic
#228122 #222281 #812222
tetradic
#228122 #225281 #812281 #815222
square
#228122 #225281 #812281 #815222
split-complementary
#228122 #522281 #812252
monochromatic
#082008 #155115 #228122 #2FB12F #4DD04D

Accessibility & contrast

On white

4.96
#228122 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#228122 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228122
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228122#FFFFFF#000000##FFFFFF
##2281221.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847412
Deuteranopia (green-blind)
#796D2C
Tritanopia (blue-blind)
#017D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #228122;
/* rgb */ color: rgb(34, 129, 34);
/* oklch */ color: oklch(52.9% 0.157 143.0);
Tailwind
colors: {
  custom: {
    50: '#6da763',
    500: '#228122',
    950: '#000000',
  },
}
SCSS
$custom: #228122;
$custom-light: #6da763;
$custom-dark: #000000;
JSON
{
  "hex": "#228122",
  "rgb": {
    "r": 34,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52945,
    "c": 0.15692,
    "h": 143
  },
  "luminance": 0.16156
}

Semantic roles & 50–950 ramp

primary
#228122
secondary
#B34BB3
accent
#46E1E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #228122

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

Preview Lab → · Contrast checker → · Palette generator →

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