#22872D#22872D

#22872D is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.156 H 144.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#22872D
RGBrgb(34, 135, 45)
HSLhsl(127, 60%, 33%)
HSVhsv(127, 75%, 53%)
CMYKcmyk(74.8%, 0%, 66.7%, 47.1%)
CIE-LABlab(49.32, -47.13, 39.09)
CIE-LCHlch(49.32, 61.23, 140.33°)
OKLaboklab(54.75% -0.1274 0.0907)
OKLCHoklch(54.75% 0.156 144.5)
XYZxyz(9.7967, 17.8564, 5.4124)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22872D #87227C
analogous
#498722 #22872D #22875F
triadic
#22872D #2D2287 #872D22
tetradic
#22872D #224987 #87227C #875F22
square
#22872D #224987 #87227C #875F22
split-complementary
#22872D #5F2287 #872249
monochromatic
#09250C #16561D #22872D #2EB83D #50D35F

Accessibility & contrast

On white

4.59
#22872D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#22872D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #22872D
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22872D#FFFFFF#000000##FFFFFF
##22872D1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A22
Deuteranopia (green-blind)
#7E7235
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #22872d;
/* rgb */ color: rgb(34, 135, 45);
/* oklch */ color: oklch(54.8% 0.156 144.5);
Tailwind
colors: {
  custom: {
    50: '#6eab6a',
    500: '#22872d',
    950: '#000000',
  },
}
SCSS
$custom: #22872d;
$custom-light: #6eab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#22872d",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 45
  },
  "hsl": {
    "h": 126.535,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54753,
    "c": 0.15641,
    "h": 144.5
  },
  "luminance": 0.17857
}

Semantic roles & 50–950 ramp

primary
#22872D
secondary
#B74EAB
accent
#45D2E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #22872D

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

Preview Lab → · Contrast checker → · Palette generator →

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