#28971C#28971C

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

Color values

HEX#28971C
RGBrgb(40, 151, 28)
HSLhsl(114, 69%, 35%)
HSVhsv(114, 81%, 59%)
CMYKcmyk(73.5%, 0%, 81.5%, 40.8%)
CIE-LABlab(54.73, -52.98, 51.13)
CIE-LCHlch(54.73, 73.63, 136.02°)
OKLaboklab(59.24% -0.1444 0.1137)
OKLCHoklch(59.24% 0.184 141.8)
XYZxyz(12.1506, 22.6668, 4.8332)
Luminance0.2267 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28971C #8B1C97
analogous
#66971C #28971C #1C974D
triadic
#28971C #1C2897 #971C28
tetradic
#28971C #1C6697 #8B1C97 #974D1C
square
#28971C #1C6697 #8B1C97 #974D1C
split-complementary
#28971C #4D1C97 #971C66
monochromatic
#0D3009 #1A6312 #28971C #36CB26 #5DDE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28971C#FFFFFF#000000##000000
##28971C1.003.795.535.53
#FFFFFF3.791.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: #28971c;
/* rgb */ color: rgb(40, 151, 28);
/* oklch */ color: oklch(59.2% 0.184 141.8);
Tailwind
colors: {
  custom: {
    50: '#75b763',
    500: '#28971c',
    950: '#000000',
  },
}
SCSS
$custom: #28971c;
$custom-light: #75b763;
$custom-dark: #000000;
JSON
{
  "hex": "#28971c",
  "rgb": {
    "r": 40,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 114.146,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59239,
    "c": 0.18378,
    "h": 141.8
  },
  "luminance": 0.22668
}

Semantic roles & 50–950 ramp

primary
#28971C
secondary
#B64EC1
accent
#3CECDA
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #28971C

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

Preview Lab → · Contrast checker → · Palette generator →

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