#28872D#28872D

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

Color values

HEX#28872D
RGBrgb(40, 135, 45)
HSLhsl(123, 54%, 34%)
HSVhsv(123, 70%, 53%)
CMYKcmyk(70.4%, 0%, 66.7%, 47.1%)
CIE-LABlab(49.46, -46.00, 39.27)
CIE-LCHlch(49.46, 60.49, 139.51°)
OKLaboklab(54.9% -0.1247 0.0911)
OKLCHoklch(54.9% 0.154 143.8)
XYZxyz(10.0121, 17.9675, 5.4225)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28872D #872882
analogous
#538728 #28872D #28875D
triadic
#28872D #2D2887 #872D28
tetradic
#28872D #285387 #872882 #875D28
square
#28872D #285387 #872882 #875D28
split-complementary
#28872D #5D2887 #872853
monochromatic
#0C290E #1A581D #28872D #36B63D #5BCE61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28872D#FFFFFF#000000##000000
##28872D1.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)
#8A7A22
Deuteranopia (green-blind)
#7E7335
Tritanopia (blue-blind)
#0B8374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #28872d;
/* rgb */ color: rgb(40, 135, 45);
/* oklch */ color: oklch(54.9% 0.154 143.8);
Tailwind
colors: {
  custom: {
    50: '#70ab6a',
    500: '#28872d',
    950: '#000000',
  },
}
SCSS
$custom: #28872d;
$custom-light: #70ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#28872d",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 45
  },
  "hsl": {
    "h": 123.158,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54904,
    "c": 0.15441,
    "h": 143.8
  },
  "luminance": 0.17969
}

Semantic roles & 50–950 ramp

primary
#28872D
secondary
#B457AF
accent
#4AD6DE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #28872D

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

Preview Lab → · Contrast checker → · Palette generator →

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