#22872C#22872C

#22872C is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.157 H 144.4°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#22872C
RGBrgb(34, 135, 44)
HSLhsl(126, 60%, 33%)
HSVhsv(126, 75%, 53%)
CMYKcmyk(74.8%, 0%, 67.4%, 47.1%)
CIE-LABlab(49.31, -47.24, 39.53)
CIE-LCHlch(49.31, 61.59, 140.08°)
OKLaboklab(54.74% -0.1277 0.0916)
OKLCHoklch(54.74% 0.157 144.4)
XYZxyz(9.7776, 17.8488, 5.3122)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22872C #87227D
analogous
#4A8722 #22872C #22875E
triadic
#22872C #2C2287 #872C22
tetradic
#22872C #224A87 #87227D #875E22
square
#22872C #224A87 #87227D #875E22
split-complementary
#22872C #5E2287 #87224A
monochromatic
#09250C #16561C #22872C #2EB83C #50D35D

Accessibility & contrast

On white

4.60
#22872C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #22872C
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22872C#FFFFFF#000000##FFFFFF
##22872C1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A20
Deuteranopia (green-blind)
#7E7234
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #22872c;
/* rgb */ color: rgb(34, 135, 44);
/* oklch */ color: oklch(54.7% 0.157 144.4);
Tailwind
colors: {
  custom: {
    50: '#6eab69',
    500: '#22872c',
    950: '#000000',
  },
}
SCSS
$custom: #22872c;
$custom-light: #6eab69;
$custom-dark: #000000;
JSON
{
  "hex": "#22872c",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 44
  },
  "hsl": {
    "h": 125.941,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54743,
    "c": 0.15718,
    "h": 144.4
  },
  "luminance": 0.1785
}

Semantic roles & 50–950 ramp

primary
#22872C
secondary
#B74EAC
accent
#45D3E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #22872C

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

Preview Lab → · Contrast checker → · Palette generator →

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