#28872C#28872C

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

Color values

HEX#28872C
RGBrgb(40, 135, 44)
HSLhsl(123, 54%, 34%)
HSVhsv(123, 70%, 53%)
CMYKcmyk(70.4%, 0%, 67.4%, 47.1%)
CIE-LABlab(49.45, -46.11, 39.71)
CIE-LCHlch(49.45, 60.86, 139.26°)
OKLaboklab(54.89% -0.125 0.0919)
OKLCHoklch(54.89% 0.155 143.7)
XYZxyz(9.9931, 17.9598, 5.3223)
Luminance0.1796 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28872C #872883
analogous
#548728 #28872C #28875C
triadic
#28872C #2C2887 #872C28
tetradic
#28872C #285487 #872883 #875C28
square
#28872C #285487 #872883 #875C28
split-complementary
#28872C #5C2887 #872854
monochromatic
#0C290D #1A581D #28872C #36B63B #5BCE60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28872C#FFFFFF#000000##000000
##28872C1.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)
#8A7A20
Deuteranopia (green-blind)
#7F7334
Tritanopia (blue-blind)
#0C8374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #28872c;
/* rgb */ color: rgb(40, 135, 44);
/* oklch */ color: oklch(54.9% 0.155 143.7);
Tailwind
colors: {
  custom: {
    50: '#70ab69',
    500: '#28872c',
    950: '#000000',
  },
}
SCSS
$custom: #28872c;
$custom-light: #70ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#28872c",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 44
  },
  "hsl": {
    "h": 122.526,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54894,
    "c": 0.15516,
    "h": 143.7
  },
  "luminance": 0.17961
}

Semantic roles & 50–950 ramp

primary
#28872C
secondary
#B457B0
accent
#4AD7DE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #28872C

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

Preview Lab → · Contrast checker → · Palette generator →

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