#28972A#28972A

#28972A is a mid, vivid green. Relative luminance 0.228; OKLCH L 59.3% C 0.176 H 143.2°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#28972A
RGBrgb(40, 151, 42)
HSLhsl(121, 58%, 37%)
HSVhsv(121, 74%, 59%)
CMYKcmyk(73.5%, 0%, 72.2%, 40.8%)
CIE-LABlab(54.81, -51.92, 46.28)
CIE-LCHlch(54.81, 69.56, 138.29°)
OKLaboklab(59.34% -0.1409 0.1055)
OKLCHoklch(59.34% 0.176 143.2)
XYZxyz(12.3588, 22.7501, 5.9299)
Luminance0.2275 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28972A #972895
analogous
#5E9728 #28972A #289761
triadic
#28972A #2A2897 #972A28
tetradic
#28972A #285E97 #972895 #976128
square
#28972A #285E97 #972895 #976128
split-complementary
#28972A #612897 #97285E
monochromatic
#0E360F #1B671D #28972A #35C737 #64D666

Accessibility & contrast

On white

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

On black

5.55
#28972A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28972A
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28972A#FFFFFF#000000##000000
##28972A1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8818
Deuteranopia (green-blind)
#8E8035
Tritanopia (blue-blind)
#009381
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #28972a;
/* rgb */ color: rgb(40, 151, 42);
/* oklch */ color: oklch(59.3% 0.176 143.2);
Tailwind
colors: {
  custom: {
    50: '#74b76a',
    500: '#28972a',
    950: '#000000',
  },
}
SCSS
$custom: #28972a;
$custom-light: #74b76a;
$custom-dark: #000000;
JSON
{
  "hex": "#28972a",
  "rgb": {
    "r": 40,
    "g": 151,
    "b": 42
  },
  "hsl": {
    "h": 121.081,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.59338,
    "c": 0.17599,
    "h": 143.2
  },
  "luminance": 0.22752
}

Semantic roles & 50–950 ramp

primary
#28972A
secondary
#BC5FBA
accent
#46DFE1
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #28972A

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

Preview Lab → · Contrast checker → · Palette generator →

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