#28871E#28871E

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

Color values

HEX#28871E
RGBrgb(40, 135, 30)
HSLhsl(114, 64%, 32%)
HSVhsv(114, 78%, 53%)
CMYKcmyk(70.4%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.34, -47.40, 45.28)
CIE-LCHlch(49.34, 65.55, 136.31°)
OKLaboklab(54.77% -0.1292 0.1018)
OKLCHoklch(54.77% 0.164 141.8)
XYZxyz(9.7728, 17.8718, 4.1626)
Luminance0.1787 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28871E #7D1E87
analogous
#5C871E #28871E #1E8749
triadic
#28871E #1E2887 #871E28
tetradic
#28871E #1E5C87 #7D1E87 #87491E
square
#28871E #1E5C87 #7D1E87 #87491E
split-complementary
#28871E #491E87 #871E5C
monochromatic
#0A2308 #195513 #28871E #37B929 #56D749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28871E#FFFFFF#000000##FFFFFF
##28871E1.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)
#8A7A06
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#118373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #28871e;
/* rgb */ color: rgb(40, 135, 30);
/* oklch */ color: oklch(54.8% 0.164 141.8);
Tailwind
colors: {
  custom: {
    50: '#71ab62',
    500: '#28871e',
    950: '#000000',
  },
}
SCSS
$custom: #28871e;
$custom-light: #71ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#28871e",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 114.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5477,
    "c": 0.16448,
    "h": 141.8
  },
  "luminance": 0.17873
}

Semantic roles & 50–950 ramp

primary
#28871E
secondary
#AE48B9
accent
#41E7D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #28871E

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

Preview Lab → · Contrast checker → · Palette generator →

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