#227B22#227B22

#227B22 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.150 H 143.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#227B22
RGBrgb(34, 123, 34)
HSLhsl(120, 57%, 31%)
HSVhsv(120, 72%, 48%)
CMYKcmyk(72.4%, 0%, 72.4%, 51.8%)
CIE-LABlab(45.11, -44.00, 39.37)
CIE-LCHlch(45.11, 59.04, 138.18°)
OKLaboklab(51.23% -0.1195 0.09)
OKLCHoklch(51.23% 0.15 143)
XYZxyz(8.0309, 14.6206, 3.9119)
Luminance0.1462 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B22 #7B227B
analogous
#4E7B22 #227B22 #227B4E
triadic
#227B22 #22227B #7B2222
tetradic
#227B22 #224E7B #7B227B #7B4E22
square
#227B22 #224E7B #7B227B #7B4E22
split-complementary
#227B22 #4E227B #7B224E
monochromatic
#071B07 #154B15 #227B22 #2FAB2F #4ACD4A

Accessibility & contrast

On white

5.35
#227B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#227B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B22
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B22#FFFFFF#000000##FFFFFF
##227B221.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F14
Deuteranopia (green-blind)
#73682B
Tritanopia (blue-blind)
#077769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b22;
/* rgb */ color: rgb(34, 123, 34);
/* oklch */ color: oklch(51.2% 0.150 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ba262',
    500: '#227b22',
    950: '#000000',
  },
}
SCSS
$custom: #227b22;
$custom-light: #6ba262;
$custom-dark: #000000;
JSON
{
  "hex": "#227b22",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5123,
    "c": 0.14959,
    "h": 143
  },
  "luminance": 0.14621
}

Semantic roles & 50–950 ramp

primary
#227B22
secondary
#AE4BAE
accent
#48E0E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #227B22

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

Preview Lab → · Contrast checker → · Palette generator →

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