#28971A#28971A

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

Color values

HEX#28971A
RGBrgb(40, 151, 26)
HSLhsl(113, 71%, 35%)
HSVhsv(113, 83%, 59%)
CMYKcmyk(73.5%, 0%, 82.8%, 40.8%)
CIE-LABlab(54.72, -53.10, 51.71)
CIE-LCHlch(54.72, 74.12, 135.76°)
OKLaboklab(59.23% -0.1448 0.1146)
OKLCHoklch(59.23% 0.185 141.6)
XYZxyz(12.1274, 22.6576, 4.7113)
Luminance0.2266 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28971A #891A97
analogous
#67971A #28971A #1A974B
triadic
#28971A #1A2897 #971A28
tetradic
#28971A #1A6797 #891A97 #974B1A
square
#28971A #1A6797 #891A97 #974B1A
split-complementary
#28971A #4B1A97 #971A67
monochromatic
#0C2F08 #1A6311 #28971A #36CB23 #5CE04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28971A#FFFFFF#000000##000000
##28971A1.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)
#8E802A
Tritanopia (blue-blind)
#039280
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #28971a;
/* rgb */ color: rgb(40, 151, 26);
/* oklch */ color: oklch(59.2% 0.185 141.6);
Tailwind
colors: {
  custom: {
    50: '#75b763',
    500: '#28971a',
    950: '#000000',
  },
}
SCSS
$custom: #28971a;
$custom-light: #75b763;
$custom-dark: #000000;
JSON
{
  "hex": "#28971a",
  "rgb": {
    "r": 40,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 113.28,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59227,
    "c": 0.18469,
    "h": 141.6
  },
  "luminance": 0.22659
}

Semantic roles & 50–950 ramp

primary
#28971A
secondary
#B54BC2
accent
#3AEDD9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #28971A

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

Preview Lab → · Contrast checker → · Palette generator →

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