#28871D#28871D

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

Color values

HEX#28871D
RGBrgb(40, 135, 29)
HSLhsl(114, 65%, 32%)
HSVhsv(114, 79%, 53%)
CMYKcmyk(70.4%, 0%, 78.5%, 47.1%)
CIE-LABlab(49.33, -47.47, 45.63)
CIE-LCHlch(49.33, 65.84, 136.13°)
OKLaboklab(54.76% -0.1295 0.1024)
OKLCHoklch(54.76% 0.165 141.7)
XYZxyz(9.7603, 17.8667, 4.0964)
Luminance0.1787 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28871D #7C1D87
analogous
#5D871D #28871D #1D8747
triadic
#28871D #1D2887 #871D28
tetradic
#28871D #1D5D87 #7C1D87 #87471D
square
#28871D #1D5D87 #7C1D87 #87471D
split-complementary
#28871D #471D87 #871D5D
monochromatic
#0A2207 #195512 #28871D #37B928 #56D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28871D#FFFFFF#000000##FFFFFF
##28871D1.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)
#8A7A04
Deuteranopia (green-blind)
#7F7229
Tritanopia (blue-blind)
#128373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #28871d;
/* rgb */ color: rgb(40, 135, 29);
/* oklch */ color: oklch(54.8% 0.165 141.7);
Tailwind
colors: {
  custom: {
    50: '#71ab61',
    500: '#28871d',
    950: '#000000',
  },
}
SCSS
$custom: #28871d;
$custom-light: #71ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#28871d",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 113.774,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54763,
    "c": 0.16505,
    "h": 141.7
  },
  "luminance": 0.17868
}

Semantic roles & 50–950 ramp

primary
#28871D
secondary
#AD46B9
accent
#40E8D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #28871D

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

Preview Lab → · Contrast checker → · Palette generator →

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