#28872B#28872B

#28872B is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.156 H 143.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#28872B
RGBrgb(40, 135, 43)
HSLhsl(122, 54%, 34%)
HSVhsv(122, 70%, 53%)
CMYKcmyk(70.4%, 0%, 68.1%, 47.1%)
CIE-LABlab(49.44, -46.22, 40.15)
CIE-LCHlch(49.44, 61.22, 139.02°)
OKLaboklab(54.88% -0.1253 0.0927)
OKLCHoklch(54.88% 0.156 143.5)
XYZxyz(9.9745, 17.9524, 5.2245)
Luminance0.1795 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28872B #872884
analogous
#558728 #28872B #28875B
triadic
#28872B #2B2887 #872B28
tetradic
#28872B #285587 #872884 #875B28
square
#28872B #285587 #872884 #875B28
split-complementary
#28872B #5B2887 #872855
monochromatic
#0C290D #1A581C #28872B #36B63A #5BCE5F

Accessibility & contrast

On white

4.57
#28872B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#28872B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28872B
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28872B#FFFFFF#000000##000000
##28872B1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1F
Deuteranopia (green-blind)
#7F7333
Tritanopia (blue-blind)
#0C8374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #28872b;
/* rgb */ color: rgb(40, 135, 43);
/* oklch */ color: oklch(54.9% 0.156 143.5);
Tailwind
colors: {
  custom: {
    50: '#70ab69',
    500: '#28872b',
    950: '#000000',
  },
}
SCSS
$custom: #28872b;
$custom-light: #70ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#28872b",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 43
  },
  "hsl": {
    "h": 121.895,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54883,
    "c": 0.15592,
    "h": 143.5
  },
  "luminance": 0.17953
}

Semantic roles & 50–950 ramp

primary
#28872B
secondary
#B457B1
accent
#4AD9DE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #28872B

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

Preview Lab → · Contrast checker → · Palette generator →

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