#28972E#28972E

#28972E is a mid, vivid green. Relative luminance 0.228; OKLCH L 59.4% C 0.173 H 143.7°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#28972E
RGBrgb(40, 151, 46)
HSLhsl(123, 58%, 37%)
HSVhsv(123, 74%, 59%)
CMYKcmyk(73.5%, 0%, 69.5%, 40.8%)
CIE-LABlab(54.85, -51.55, 44.69)
CIE-LCHlch(54.85, 68.22, 139.08°)
OKLaboklab(59.37% -0.1396 0.1027)
OKLCHoklch(59.37% 0.173 143.7)
XYZxyz(12.4340, 22.7802, 6.3260)
Luminance0.2278 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28972E #972891
analogous
#5A9728 #28972E #289765
triadic
#28972E #2E2897 #972E28
tetradic
#28972E #285A97 #972891 #976528
square
#28972E #285A97 #972891 #976528
split-complementary
#28972E #652897 #97285A
monochromatic
#0E3611 #1B671F #28972E #35C73D #64D66A

Accessibility & contrast

On white

3.78
#28972E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#28972E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28972E
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28972E#FFFFFF#000000##000000
##28972E1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A891F
Deuteranopia (green-blind)
#8D8038
Tritanopia (blue-blind)
#009382
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #28972e;
/* rgb */ color: rgb(40, 151, 46);
/* oklch */ color: oklch(59.4% 0.173 143.7);
Tailwind
colors: {
  custom: {
    50: '#74b76c',
    500: '#28972e',
    950: '#000000',
  },
}
SCSS
$custom: #28972e;
$custom-light: #74b76c;
$custom-dark: #000000;
JSON
{
  "hex": "#28972e",
  "rgb": {
    "r": 40,
    "g": 151,
    "b": 46
  },
  "hsl": {
    "h": 123.243,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.59374,
    "c": 0.17331,
    "h": 143.7
  },
  "luminance": 0.22782
}

Semantic roles & 50–950 ramp

primary
#28972E
secondary
#BC5FB7
accent
#46D9E1
background
#F7FBF6
surface
#EEF6EC
border
#C9D0C7
text
#091107
muted
#7B807A

Preview Lab

Preview with #28972E

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

Preview Lab → · Contrast checker → · Palette generator →

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