#228722#228722

#228722 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.6% C 0.164 H 142.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#228722
RGBrgb(34, 135, 34)
HSLhsl(120, 60%, 33%)
HSVhsv(120, 75%, 53%)
CMYKcmyk(74.8%, 0%, 74.8%, 47.1%)
CIE-LABlab(49.23, -48.22, 43.63)
CIE-LCHlch(49.23, 65.03, 137.86°)
OKLaboklab(54.65% -0.1309 0.0989)
OKLCHoklch(54.65% 0.164 142.9)
XYZxyz(9.6118, 17.7824, 4.4389)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228722 #872287
analogous
#548722 #228722 #228754
triadic
#228722 #222287 #872222
tetradic
#228722 #225487 #872287 #875422
square
#228722 #225487 #872287 #875422
split-complementary
#228722 #542287 #872254
monochromatic
#092509 #165616 #228722 #2EB82E #50D350

Accessibility & contrast

On white

4.61
#228722 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#228722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #228722
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228722#FFFFFF#000000##FFFFFF
##2287221.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A10
Deuteranopia (green-blind)
#7F722D
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #228722;
/* rgb */ color: rgb(34, 135, 34);
/* oklch */ color: oklch(54.6% 0.164 142.9);
Tailwind
colors: {
  custom: {
    50: '#6eab64',
    500: '#228722',
    950: '#000000',
  },
}
SCSS
$custom: #228722;
$custom-light: #6eab64;
$custom-dark: #000000;
JSON
{
  "hex": "#228722",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5465,
    "c": 0.16409,
    "h": 142.9
  },
  "luminance": 0.17784
}

Semantic roles & 50–950 ramp

primary
#228722
secondary
#B74EB7
accent
#45E3E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #228722

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

Preview Lab → · Contrast checker → · Palette generator →

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