#28871F#28871F

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

Color values

HEX#28871F
RGBrgb(40, 135, 31)
HSLhsl(115, 63%, 33%)
HSVhsv(115, 77%, 53%)
CMYKcmyk(70.4%, 0%, 77%, 47.1%)
CIE-LABlab(49.35, -47.32, 44.93)
CIE-LCHlch(49.35, 65.25, 136.49°)
OKLaboklab(54.78% -0.129 0.1012)
OKLCHoklch(54.78% 0.164 141.9)
XYZxyz(9.7858, 17.8770, 4.2309)
Luminance0.1788 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28871F #7E1F87
analogous
#5C871F #28871F #1F874A
triadic
#28871F #1F2887 #871F28
tetradic
#28871F #1F5C87 #7E1F87 #874A1F
square
#28871F #1F5C87 #7E1F87 #874A1F
split-complementary
#28871F #4A1F87 #871F5C
monochromatic
#0B2308 #195514 #28871F #37B92A #57D64B

Accessibility & contrast

On white

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

On black

4.58
#28871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##28871F#FFFFFF#000000##FFFFFF
##28871F1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A09
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#118373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #28871f;
/* rgb */ color: rgb(40, 135, 31);
/* oklch */ color: oklch(54.8% 0.164 141.9);
Tailwind
colors: {
  custom: {
    50: '#71ab62',
    500: '#28871f',
    950: '#000000',
  },
}
SCSS
$custom: #28871f;
$custom-light: #71ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#28871f",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 114.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54778,
    "c": 0.16391,
    "h": 141.9
  },
  "luminance": 0.17878
}

Semantic roles & 50–950 ramp

primary
#28871F
secondary
#AF4AB8
accent
#42E6D8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #28871F

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

Preview Lab → · Contrast checker → · Palette generator →

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