#22871E#22871E

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

Color values

HEX#22871E
RGBrgb(34, 135, 30)
HSLhsl(118, 64%, 32%)
HSVhsv(118, 78%, 53%)
CMYKcmyk(74.8%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.20, -48.55, 45.10)
CIE-LCHlch(49.20, 66.26, 137.11°)
OKLaboklab(54.62% -0.132 0.1015)
OKLCHoklch(54.62% 0.166 142.5)
XYZxyz(9.5574, 17.7607, 4.1525)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22871E #831E87
analogous
#57871E #22871E #1E874E
triadic
#22871E #1E2287 #871E22
tetradic
#22871E #1E5787 #831E87 #874E1E
square
#22871E #1E5787 #831E87 #874E1E
split-complementary
#22871E #4E1E87 #871E57
monochromatic
#092308 #155513 #22871E #2FB929 #4ED749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##22871E#FFFFFF#000000##FFFFFF
##22871E1.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)
#8A7A06
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #22871e;
/* rgb */ color: rgb(34, 135, 30);
/* oklch */ color: oklch(54.6% 0.166 142.5);
Tailwind
colors: {
  custom: {
    50: '#6fab62',
    500: '#22871e',
    950: '#000000',
  },
}
SCSS
$custom: #22871e;
$custom-light: #6fab62;
$custom-dark: #000000;
JSON
{
  "hex": "#22871e",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 117.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54619,
    "c": 0.16647,
    "h": 142.5
  },
  "luminance": 0.17762
}

Semantic roles & 50–950 ramp

primary
#22871E
secondary
#B448B9
accent
#41E7E0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #22871E

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

Preview Lab → · Contrast checker → · Palette generator →

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