#227E22#227E22

#227E22 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.153 H 143.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#227E22
RGBrgb(34, 126, 34)
HSLhsl(120, 58%, 31%)
HSVhsv(120, 73%, 49%)
CMYKcmyk(73%, 0%, 73%, 50.6%)
CIE-LABlab(46.15, -45.08, 40.45)
CIE-LCHlch(46.15, 60.57, 138.09°)
OKLaboklab(52.09% -0.1224 0.0923)
OKLCHoklch(52.09% 0.153 143)
XYZxyz(8.4088, 15.3764, 4.0378)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E22 #7E227E
analogous
#507E22 #227E22 #227E50
triadic
#227E22 #22227E #7E2222
tetradic
#227E22 #22507E #7E227E #7E5022
square
#227E22 #22507E #7E227E #7E5022
split-complementary
#227E22 #50227E #7E2250
monochromatic
#081E08 #154E15 #227E22 #2FAE2F #4CCF4C

Accessibility & contrast

On white

5.15
#227E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#227E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E22
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E22#FFFFFF#000000##FFFFFF
##227E221.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817213
Deuteranopia (green-blind)
#766A2B
Tritanopia (blue-blind)
#047A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e22;
/* rgb */ color: rgb(34, 126, 34);
/* oklch */ color: oklch(52.1% 0.153 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ca463',
    500: '#227e22',
    950: '#000000',
  },
}
SCSS
$custom: #227e22;
$custom-light: #6ca463;
$custom-dark: #000000;
JSON
{
  "hex": "#227e22",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52089,
    "c": 0.15328,
    "h": 143
  },
  "luminance": 0.15377
}

Semantic roles & 50–950 ramp

primary
#227E22
secondary
#B14BB1
accent
#47E1E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #227E22

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

Preview Lab → · Contrast checker → · Palette generator →

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