#22871B#22871B

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

Color values

HEX#22871B
RGBrgb(34, 135, 27)
HSLhsl(116, 67%, 32%)
HSVhsv(116, 80%, 53%)
CMYKcmyk(74.8%, 0%, 80%, 47.1%)
CIE-LABlab(49.19, -48.77, 46.13)
CIE-LCHlch(49.19, 67.12, 136.59°)
OKLaboklab(54.6% -0.1327 0.1032)
OKLCHoklch(54.6% 0.168 142.1)
XYZxyz(9.5209, 17.7461, 3.9603)
Luminance0.1775 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22871B #801B87
analogous
#58871B #22871B #1B874A
triadic
#22871B #1B2287 #871B22
tetradic
#22871B #1B5887 #801B87 #874A1B
square
#22871B #1B5887 #801B87 #874A1B
split-complementary
#22871B #4A1B87 #871B58
monochromatic
#082107 #155411 #22871B #2FBA25 #4DD943

Accessibility & contrast

On white

4.62
#22871B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #22871B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22871B#FFFFFF#000000##FFFFFF
##22871B1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22871b;
/* rgb */ color: rgb(34, 135, 27);
/* oklch */ color: oklch(54.6% 0.168 142.1);
Tailwind
colors: {
  custom: {
    50: '#6fab60',
    500: '#22871b',
    950: '#000000',
  },
}
SCSS
$custom: #22871b;
$custom-light: #6fab60;
$custom-dark: #000000;
JSON
{
  "hex": "#22871b",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 116.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54598,
    "c": 0.1681,
    "h": 142.1
  },
  "luminance": 0.17747
}

Semantic roles & 50–950 ramp

primary
#22871B
secondary
#B244BA
accent
#3EEADE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #22871B

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

Preview Lab → · Contrast checker → · Palette generator →

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