#22871C#22871C

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

Color values

HEX#22871C
RGBrgb(34, 135, 28)
HSLhsl(117, 66%, 32%)
HSVhsv(117, 79%, 53%)
CMYKcmyk(74.8%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.19, -48.69, 45.79)
CIE-LCHlch(49.19, 66.84, 136.76°)
OKLaboklab(54.61% -0.1325 0.1026)
OKLCHoklch(54.61% 0.168 142.2)
XYZxyz(9.5327, 17.7508, 4.0222)
Luminance0.1775 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22871C #811C87
analogous
#57871C #22871C #1C874C
triadic
#22871C #1C2287 #871C22
tetradic
#22871C #1C5787 #811C87 #874C1C
square
#22871C #1C5787 #811C87 #874C1C
split-complementary
#22871C #4C1C87 #871C57
monochromatic
#082207 #155411 #22871C #2FBA27 #4DD845

Accessibility & contrast

On white

4.61
#22871C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#22871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##22871C#FFFFFF#000000##FFFFFF
##22871C1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22871c;
/* rgb */ color: rgb(34, 135, 28);
/* oklch */ color: oklch(54.6% 0.168 142.2);
Tailwind
colors: {
  custom: {
    50: '#6fab61',
    500: '#22871c',
    950: '#000000',
  },
}
SCSS
$custom: #22871c;
$custom-light: #6fab61;
$custom-dark: #000000;
JSON
{
  "hex": "#22871c",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 116.636,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54605,
    "c": 0.16757,
    "h": 142.2
  },
  "luminance": 0.17752
}

Semantic roles & 50–950 ramp

primary
#22871C
secondary
#B345BA
accent
#3FE9DF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #22871C

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

Preview Lab → · Contrast checker → · Palette generator →

#22871C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva