#28872A#28872A

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

Color values

HEX#28872A
RGBrgb(40, 135, 42)
HSLhsl(121, 54%, 34%)
HSVhsv(121, 70%, 53%)
CMYKcmyk(70.4%, 0%, 68.9%, 47.1%)
CIE-LABlab(49.43, -46.32, 40.58)
CIE-LCHlch(49.43, 61.58, 138.78°)
OKLaboklab(54.87% -0.1257 0.0935)
OKLCHoklch(54.87% 0.157 143.3)
XYZxyz(9.9564, 17.9452, 5.1291)
Luminance0.1795 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28872A #872885
analogous
#568728 #28872A #28875A
triadic
#28872A #2A2887 #872A28
tetradic
#28872A #285687 #872885 #875A28
square
#28872A #285687 #872885 #875A28
split-complementary
#28872A #5A2887 #872856
monochromatic
#0C290D #1A581B #28872A #36B639 #5BCE5D

Accessibility & contrast

On white

4.58
#28872A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##28872A#FFFFFF#000000##000000
##28872A1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1D
Deuteranopia (green-blind)
#7F7333
Tritanopia (blue-blind)
#0D8374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #28872a;
/* rgb */ color: rgb(40, 135, 42);
/* oklch */ color: oklch(54.9% 0.157 143.3);
Tailwind
colors: {
  custom: {
    50: '#70ab68',
    500: '#28872a',
    950: '#000000',
  },
}
SCSS
$custom: #28872a;
$custom-light: #70ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#28872a",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 42
  },
  "hsl": {
    "h": 121.263,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54873,
    "c": 0.15666,
    "h": 143.3
  },
  "luminance": 0.17946
}

Semantic roles & 50–950 ramp

primary
#28872A
secondary
#B457B2
accent
#4ADBDE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #28872A

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

Preview Lab → · Contrast checker → · Palette generator →

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