#28971F#28971F

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

Color values

HEX#28971F
RGBrgb(40, 151, 31)
HSLhsl(116, 66%, 36%)
HSVhsv(116, 79%, 59%)
CMYKcmyk(73.5%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.74, -52.79, 50.20)
CIE-LCHlch(54.74, 72.85, 136.44°)
OKLaboklab(59.26% -0.1437 0.1122)
OKLCHoklch(59.26% 0.182 142)
XYZxyz(12.1883, 22.6819, 5.0318)
Luminance0.2268 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28971F #8E1F97
analogous
#64971F #28971F #1F9752
triadic
#28971F #1F2897 #971F28
tetradic
#28971F #1F6497 #8E1F97 #97521F
square
#28971F #1F6497 #8E1F97 #97521F
split-complementary
#28971F #521F97 #971F64
monochromatic
#0D310A #1B6415 #28971F #35CA29 #5FDC54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28971F#FFFFFF#000000##000000
##28971F1.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)
#8E802D
Tritanopia (blue-blind)
#019281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #28971f;
/* rgb */ color: rgb(40, 151, 31);
/* oklch */ color: oklch(59.3% 0.182 142.0);
Tailwind
colors: {
  custom: {
    50: '#75b765',
    500: '#28971f',
    950: '#000000',
  },
}
SCSS
$custom: #28971f;
$custom-light: #75b765;
$custom-dark: #000000;
JSON
{
  "hex": "#28971f",
  "rgb": {
    "r": 40,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 115.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59257,
    "c": 0.18233,
    "h": 142
  },
  "luminance": 0.22683
}

Semantic roles & 50–950 ramp

primary
#28971F
secondary
#B752BF
accent
#3FE9DC
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #28971F

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

Preview Lab → · Contrast checker → · Palette generator →

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