#28971E#28971E

#28971E is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.3% C 0.183 H 141.9°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#28971E
RGBrgb(40, 151, 30)
HSLhsl(115, 67%, 35%)
HSVhsv(115, 80%, 59%)
CMYKcmyk(73.5%, 0%, 80.1%, 40.8%)
CIE-LABlab(54.74, -52.86, 50.52)
CIE-LCHlch(54.74, 73.11, 136.30°)
OKLaboklab(59.25% -0.144 0.1127)
OKLCHoklch(59.25% 0.183 141.9)
XYZxyz(12.1753, 22.6767, 4.9634)
Luminance0.2268 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28971E #8D1E97
analogous
#65971E #28971E #1E9750
triadic
#28971E #1E2897 #971E28
tetradic
#28971E #1E6597 #8D1E97 #97501E
square
#28971E #1E6597 #8D1E97 #97501E
split-complementary
#28971E #501E97 #971E65
monochromatic
#0D310A #1A6414 #28971E #36CA28 #5EDD53

Accessibility & contrast

On white

3.79
#28971E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#28971E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28971E
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28971E#FFFFFF#000000##000000
##28971E1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8E802C
Tritanopia (blue-blind)
#029281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #28971e;
/* rgb */ color: rgb(40, 151, 30);
/* oklch */ color: oklch(59.3% 0.183 141.9);
Tailwind
colors: {
  custom: {
    50: '#75b764',
    500: '#28971e',
    950: '#000000',
  },
}
SCSS
$custom: #28971e;
$custom-light: #75b764;
$custom-dark: #000000;
JSON
{
  "hex": "#28971e",
  "rgb": {
    "r": 40,
    "g": 151,
    "b": 30
  },
  "hsl": {
    "h": 115.041,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.5925,
    "c": 0.18284,
    "h": 141.9
  },
  "luminance": 0.22678
}

Semantic roles & 50–950 ramp

primary
#28971E
secondary
#B751C0
accent
#3EEADC
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #28971E

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

Preview Lab → · Contrast checker → · Palette generator →

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