#227C22#227C22

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

Color values

HEX#227C22
RGBrgb(34, 124, 34)
HSLhsl(120, 57%, 31%)
HSVhsv(120, 73%, 49%)
CMYKcmyk(72.6%, 0%, 72.6%, 51.4%)
CIE-LABlab(45.46, -44.36, 39.73)
CIE-LCHlch(45.46, 59.55, 138.15°)
OKLaboklab(51.52% -0.1204 0.0908)
OKLCHoklch(51.52% 0.151 143)
XYZxyz(8.1556, 14.8700, 3.9535)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C22 #7C227C
analogous
#4F7C22 #227C22 #227C4F
triadic
#227C22 #22227C #7C2222
tetradic
#227C22 #224F7C #7C227C #7C4F22
square
#227C22 #224F7C #7C227C #7C4F22
split-complementary
#227C22 #4F227C #7C224F
monochromatic
#081C08 #154C15 #227C22 #2FAC2F #4BCE4B

Accessibility & contrast

On white

5.28
#227C22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#227C22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C22
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C22#FFFFFF#000000##FFFFFF
##227C221.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7014
Deuteranopia (green-blind)
#74692B
Tritanopia (blue-blind)
#06786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227c22;
/* rgb */ color: rgb(34, 124, 34);
/* oklch */ color: oklch(51.5% 0.151 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ca363',
    500: '#227c22',
    950: '#000000',
  },
}
SCSS
$custom: #227c22;
$custom-light: #6ca363;
$custom-dark: #000000;
JSON
{
  "hex": "#227c22",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51517,
    "c": 0.15082,
    "h": 143
  },
  "luminance": 0.14871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #227C22

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

Preview Lab → · Contrast checker → · Palette generator →

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