#227A22#227A22

#227A22 is a mid, vivid green. Relative luminance 0.144; OKLCH L 50.9% C 0.148 H 143.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#227A22
RGBrgb(34, 122, 34)
HSLhsl(120, 56%, 31%)
HSVhsv(120, 72%, 48%)
CMYKcmyk(72.1%, 0%, 72.1%, 52.2%)
CIE-LABlab(44.76, -43.64, 39.00)
CIE-LCHlch(44.76, 58.53, 138.21°)
OKLaboklab(50.94% -0.1185 0.0893)
OKLCHoklch(50.94% 0.148 143)
XYZxyz(7.9075, 14.3738, 3.8708)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A22 #7A227A
analogous
#4E7A22 #227A22 #227A4E
triadic
#227A22 #22227A #7A2222
tetradic
#227A22 #224E7A #7A227A #7A4E22
square
#227A22 #224E7A #7A227A #7A4E22
split-complementary
#227A22 #4E227A #7A224E
monochromatic
#071A07 #154A15 #227A22 #2FAA2F #4ACD4A

Accessibility & contrast

On white

5.42
#227A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#227A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A22
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A22#FFFFFF#000000##FFFFFF
##227A221.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E15
Deuteranopia (green-blind)
#72672B
Tritanopia (blue-blind)
#087668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a22;
/* rgb */ color: rgb(34, 122, 34);
/* oklch */ color: oklch(50.9% 0.148 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ba162',
    500: '#227a22',
    950: '#000000',
  },
}
SCSS
$custom: #227a22;
$custom-light: #6ba162;
$custom-dark: #000000;
JSON
{
  "hex": "#227a22",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.50944,
    "c": 0.14834,
    "h": 143
  },
  "luminance": 0.14375
}

Semantic roles & 50–950 ramp

primary
#227A22
secondary
#AD4BAD
accent
#48E0E0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #227A22

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

Preview Lab → · Contrast checker → · Palette generator →

#227A22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva