#28971B#28971B

#28971B is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.2% C 0.184 H 141.7°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#28971B
RGBrgb(40, 151, 27)
HSLhsl(114, 70%, 35%)
HSVhsv(114, 82%, 59%)
CMYKcmyk(73.5%, 0%, 82.1%, 40.8%)
CIE-LABlab(54.72, -53.04, 51.43)
CIE-LCHlch(54.72, 73.88, 135.89°)
OKLaboklab(59.23% -0.1446 0.1142)
OKLCHoklch(59.23% 0.184 141.7)
XYZxyz(12.1388, 22.6621, 4.7712)
Luminance0.2266 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28971B #8A1B97
analogous
#66971B #28971B #1B974C
triadic
#28971B #1B2897 #971B28
tetradic
#28971B #1B6697 #8A1B97 #974C1B
square
#28971B #1B6697 #8A1B97 #974C1B
split-complementary
#28971B #4C1B97 #971B66
monochromatic
#0C2F08 #1A6312 #28971B #36CB24 #5DDF4D

Accessibility & contrast

On white

3.80
#28971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#28971B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28971B
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28971B#FFFFFF#000000##000000
##28971B1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28971b;
/* rgb */ color: rgb(40, 151, 27);
/* oklch */ color: oklch(59.2% 0.184 141.7);
Tailwind
colors: {
  custom: {
    50: '#75b763',
    500: '#28971b',
    950: '#000000',
  },
}
SCSS
$custom: #28971b;
$custom-light: #75b763;
$custom-dark: #000000;
JSON
{
  "hex": "#28971b",
  "rgb": {
    "r": 40,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 113.71,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59233,
    "c": 0.18425,
    "h": 141.7
  },
  "luminance": 0.22663
}

Semantic roles & 50–950 ramp

primary
#28971B
secondary
#B54CC1
accent
#3BECDA
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #28971B

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

Preview Lab → · Contrast checker → · Palette generator →

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