#22871F#22871F

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

Color values

HEX#22871F
RGBrgb(34, 135, 31)
HSLhsl(118, 63%, 33%)
HSVhsv(118, 77%, 53%)
CMYKcmyk(74.8%, 0%, 77%, 47.1%)
CIE-LABlab(49.21, -48.47, 44.75)
CIE-LCHlch(49.21, 65.96, 137.29°)
OKLaboklab(54.63% -0.1317 0.1008)
OKLCHoklch(54.63% 0.166 142.6)
XYZxyz(9.5704, 17.7659, 4.2208)
Luminance0.1777 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22871F #841F87
analogous
#56871F #22871F #1F8750
triadic
#22871F #1F2287 #871F22
tetradic
#22871F #1F5687 #841F87 #87501F
square
#22871F #1F5687 #841F87 #87501F
split-complementary
#22871F #501F87 #871F56
monochromatic
#092308 #155514 #22871F #2FB92A #4FD64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #22871f;
/* rgb */ color: rgb(34, 135, 31);
/* oklch */ color: oklch(54.6% 0.166 142.6);
Tailwind
colors: {
  custom: {
    50: '#6fab62',
    500: '#22871f',
    950: '#000000',
  },
}
SCSS
$custom: #22871f;
$custom-light: #6fab62;
$custom-dark: #000000;
JSON
{
  "hex": "#22871f",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 118.269,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54626,
    "c": 0.1659,
    "h": 142.6
  },
  "luminance": 0.17767
}

Semantic roles & 50–950 ramp

primary
#22871F
secondary
#B54AB8
accent
#42E6E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #22871F

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

Preview Lab → · Contrast checker → · Palette generator →

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