#227D22#227D22

#227D22 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.152 H 143.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#227D22
RGBrgb(34, 125, 34)
HSLhsl(120, 57%, 31%)
HSVhsv(120, 73%, 49%)
CMYKcmyk(72.8%, 0%, 72.8%, 51%)
CIE-LABlab(45.80, -44.72, 40.09)
CIE-LCHlch(45.80, 60.06, 138.12°)
OKLaboklab(51.8% -0.1214 0.0915)
OKLCHoklch(51.8% 0.152 143)
XYZxyz(8.2815, 15.1219, 3.9954)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D22 #7D227D
analogous
#4F7D22 #227D22 #227D4F
triadic
#227D22 #22227D #7D2222
tetradic
#227D22 #224F7D #7D227D #7D4F22
square
#227D22 #224F7D #7D227D #7D4F22
split-complementary
#227D22 #4F227D #7D224F
monochromatic
#081D08 #154D15 #227D22 #2FAD2F #4BCE4B

Accessibility & contrast

On white

5.22
#227D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#227D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D22
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D22#FFFFFF#000000##FFFFFF
##227D221.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#756A2B
Tritanopia (blue-blind)
#05796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227d22;
/* rgb */ color: rgb(34, 125, 34);
/* oklch */ color: oklch(51.8% 0.152 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ca463',
    500: '#227d22',
    950: '#000000',
  },
}
SCSS
$custom: #227d22;
$custom-light: #6ca463;
$custom-dark: #000000;
JSON
{
  "hex": "#227d22",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51803,
    "c": 0.15205,
    "h": 143
  },
  "luminance": 0.15123
}

Semantic roles & 50–950 ramp

primary
#227D22
secondary
#B04BB0
accent
#47E0E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #227D22

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

Preview Lab → · Contrast checker → · Palette generator →

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