#22871D#22871D

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

Color values

HEX#22871D
RGBrgb(34, 135, 29)
HSLhsl(117, 65%, 32%)
HSVhsv(117, 79%, 53%)
CMYKcmyk(74.8%, 0%, 78.5%, 47.1%)
CIE-LABlab(49.20, -48.62, 45.45)
CIE-LCHlch(49.20, 66.56, 136.93°)
OKLaboklab(54.61% -0.1322 0.102)
OKLCHoklch(54.61% 0.167 142.3)
XYZxyz(9.5449, 17.7557, 4.0863)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22871D #821D87
analogous
#57871D #22871D #1D874D
triadic
#22871D #1D2287 #871D22
tetradic
#22871D #1D5787 #821D87 #874D1D
square
#22871D #1D5787 #821D87 #874D1D
split-complementary
#22871D #4D1D87 #871D57
monochromatic
#092207 #155512 #22871D #2FB928 #4ED747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##22871D#FFFFFF#000000##FFFFFF
##22871D1.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)
#8A7A04
Deuteranopia (green-blind)
#7F7229
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #22871d;
/* rgb */ color: rgb(34, 135, 29);
/* oklch */ color: oklch(54.6% 0.167 142.3);
Tailwind
colors: {
  custom: {
    50: '#6fab61',
    500: '#22871d',
    950: '#000000',
  },
}
SCSS
$custom: #22871d;
$custom-light: #6fab61;
$custom-dark: #000000;
JSON
{
  "hex": "#22871d",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 117.17,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54612,
    "c": 0.16703,
    "h": 142.3
  },
  "luminance": 0.17757
}

Semantic roles & 50–950 ramp

primary
#22871D
secondary
#B446B9
accent
#40E8E0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #22871D

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

Preview Lab → · Contrast checker → · Palette generator →

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