#28872E#28872E

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

Color values

HEX#28872E
RGBrgb(40, 135, 46)
HSLhsl(124, 54%, 34%)
HSVhsv(124, 70%, 53%)
CMYKcmyk(70.4%, 0%, 65.9%, 47.1%)
CIE-LABlab(49.47, -45.89, 38.83)
CIE-LCHlch(49.47, 60.11, 139.76°)
OKLaboklab(54.92% -0.1243 0.0903)
OKLCHoklch(54.92% 0.154 144)
XYZxyz(10.0316, 17.9752, 5.5251)
Luminance0.1798 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28872E #872881
analogous
#528728 #28872E #28875E
triadic
#28872E #2E2887 #872E28
tetradic
#28872E #285287 #872881 #875E28
square
#28872E #285287 #872881 #875E28
split-complementary
#28872E #5E2887 #872852
monochromatic
#0C290E #1A581E #28872E #36B63E #5BCE62

Accessibility & contrast

On white

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

On black

4.60
#28872E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28872E
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28872E#FFFFFF#000000##000000
##28872E1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A23
Deuteranopia (green-blind)
#7E7336
Tritanopia (blue-blind)
#0A8374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #28872e;
/* rgb */ color: rgb(40, 135, 46);
/* oklch */ color: oklch(54.9% 0.154 144.0);
Tailwind
colors: {
  custom: {
    50: '#70ab6b',
    500: '#28872e',
    950: '#000000',
  },
}
SCSS
$custom: #28872e;
$custom-light: #70ab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#28872e",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 46
  },
  "hsl": {
    "h": 123.789,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54915,
    "c": 0.15363,
    "h": 144
  },
  "luminance": 0.17976
}

Semantic roles & 50–950 ramp

primary
#28872E
secondary
#B457AE
accent
#4AD4DE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #28872E

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

Preview Lab → · Contrast checker → · Palette generator →

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