#28871C#28871C

#28871C is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.166 H 141.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#28871C
RGBrgb(40, 135, 28)
HSLhsl(113, 66%, 32%)
HSVhsv(113, 79%, 53%)
CMYKcmyk(70.4%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.33, -47.54, 45.97)
CIE-LCHlch(49.33, 66.13, 135.96°)
OKLaboklab(54.76% -0.1297 0.1029)
OKLCHoklch(54.76% 0.166 141.6)
XYZxyz(9.7481, 17.8619, 4.0323)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28871C #7B1C87
analogous
#5E871C #28871C #1C8746
triadic
#28871C #1C2887 #871C28
tetradic
#28871C #1C5E87 #7B1C87 #87461C
square
#28871C #1C5E87 #7B1C87 #87461C
split-complementary
#28871C #461C87 #871C5E
monochromatic
#0A2207 #195411 #28871C #37BA27 #56D845

Accessibility & contrast

On white

4.59
#28871C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#28871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #28871C
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28871C#FFFFFF#000000##FFFFFF
##28871C1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A02
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#128373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #28871c;
/* rgb */ color: rgb(40, 135, 28);
/* oklch */ color: oklch(54.8% 0.166 141.6);
Tailwind
colors: {
  custom: {
    50: '#71ab61',
    500: '#28871c',
    950: '#000000',
  },
}
SCSS
$custom: #28871c;
$custom-light: #71ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#28871c",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 113.271,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54757,
    "c": 0.16558,
    "h": 141.6
  },
  "luminance": 0.17863
}

Semantic roles & 50–950 ramp

primary
#28871C
secondary
#AD45BA
accent
#3FE9D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #28871C

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

Preview Lab → · Contrast checker → · Palette generator →

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