#22872F#22872F

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

Color values

HEX#22872F
RGBrgb(34, 135, 47)
HSLhsl(128, 60%, 33%)
HSVhsv(128, 75%, 53%)
CMYKcmyk(74.8%, 0%, 65.2%, 47.1%)
CIE-LABlab(49.34, -46.90, 38.19)
CIE-LCHlch(49.34, 60.48, 140.84°)
OKLaboklab(54.78% -0.1267 0.0891)
OKLCHoklch(54.78% 0.155 144.9)
XYZxyz(9.8361, 17.8722, 5.6201)
Luminance0.1787 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22872F #87227A
analogous
#478722 #22872F #228761
triadic
#22872F #2F2287 #872F22
tetradic
#22872F #224787 #87227A #876122
square
#22872F #224787 #87227A #876122
split-complementary
#22872F #612287 #872247
monochromatic
#09250D #16561E #22872F #2EB840 #50D361

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##22872F#FFFFFF#000000##FFFFFF
##22872F1.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)
#897A25
Deuteranopia (green-blind)
#7E7237
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #22872f;
/* rgb */ color: rgb(34, 135, 47);
/* oklch */ color: oklch(54.8% 0.155 144.9);
Tailwind
colors: {
  custom: {
    50: '#6eab6b',
    500: '#22872f',
    950: '#000000',
  },
}
SCSS
$custom: #22872f;
$custom-light: #6eab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#22872f",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 47
  },
  "hsl": {
    "h": 127.723,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54776,
    "c": 0.15485,
    "h": 144.9
  },
  "luminance": 0.17873
}

Semantic roles & 50–950 ramp

primary
#22872F
secondary
#B74EA9
accent
#45CFE3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #22872F

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

Preview Lab → · Contrast checker → · Palette generator →

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