#22872B#22872B

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

Color values

HEX#22872B
RGBrgb(34, 135, 43)
HSLhsl(125, 60%, 33%)
HSVhsv(125, 75%, 53%)
CMYKcmyk(74.8%, 0%, 68.1%, 47.1%)
CIE-LABlab(49.30, -47.35, 39.96)
CIE-LCHlch(49.30, 61.96, 139.83°)
OKLaboklab(54.73% -0.1281 0.0924)
OKLCHoklch(54.73% 0.158 144.2)
XYZxyz(9.7591, 17.8413, 5.2144)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22872B #87227E
analogous
#4B8722 #22872B #22875E
triadic
#22872B #2B2287 #872B22
tetradic
#22872B #224B87 #87227E #875E22
square
#22872B #224B87 #87227E #875E22
split-complementary
#22872B #5E2287 #87224B
monochromatic
#09250C #16561B #22872B #2EB83B #50D35C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##22872B#FFFFFF#000000##FFFFFF
##22872B1.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)
#8A7A1F
Deuteranopia (green-blind)
#7E7233
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #22872b;
/* rgb */ color: rgb(34, 135, 43);
/* oklch */ color: oklch(54.7% 0.158 144.2);
Tailwind
colors: {
  custom: {
    50: '#6eab69',
    500: '#22872b',
    950: '#000000',
  },
}
SCSS
$custom: #22872b;
$custom-light: #6eab69;
$custom-dark: #000000;
JSON
{
  "hex": "#22872b",
  "rgb": {
    "r": 34,
    "g": 135,
    "b": 43
  },
  "hsl": {
    "h": 125.347,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54732,
    "c": 0.15792,
    "h": 144.2
  },
  "luminance": 0.17842
}

Semantic roles & 50–950 ramp

primary
#22872B
secondary
#B74EAD
accent
#45D5E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #22872B

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

Preview Lab → · Contrast checker → · Palette generator →

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