#227822#227822

#227822 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.146 H 143.0°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#227822
RGBrgb(34, 120, 34)
HSLhsl(120, 56%, 30%)
HSVhsv(120, 72%, 47%)
CMYKcmyk(71.7%, 0%, 71.7%, 52.9%)
CIE-LABlab(44.07, -42.91, 38.27)
CIE-LCHlch(44.07, 57.50, 138.27°)
OKLaboklab(50.37% -0.1165 0.0877)
OKLCHoklch(50.37% 0.146 143)
XYZxyz(7.6644, 13.8877, 3.7897)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227822 #782278
analogous
#4D7822 #227822 #22784D
triadic
#227822 #222278 #782222
tetradic
#227822 #224D78 #782278 #784D22
square
#227822 #224D78 #782278 #784D22
split-complementary
#227822 #4D2278 #78224D
monochromatic
#071907 #144814 #227822 #30A830 #49CB49

Accessibility & contrast

On white

5.56
#227822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#227822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227822
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227822#FFFFFF#000000##FFFFFF
##2278221.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C15
Deuteranopia (green-blind)
#71662A
Tritanopia (blue-blind)
#097467
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #227822;
/* rgb */ color: rgb(34, 120, 34);
/* oklch */ color: oklch(50.4% 0.146 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ba062',
    500: '#227822',
    950: '#000000',
  },
}
SCSS
$custom: #227822;
$custom-light: #6ba062;
$custom-dark: #000000;
JSON
{
  "hex": "#227822",
  "rgb": {
    "r": 34,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50369,
    "c": 0.14585,
    "h": 143
  },
  "luminance": 0.13889
}

Semantic roles & 50–950 ramp

primary
#227822
secondary
#AB4BAB
accent
#49DFDF
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F05
muted
#7A7E7A

Preview Lab

Preview with #227822

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

Preview Lab → · Contrast checker → · Palette generator →

#227822 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva