#28981F#28981F

#28981F is a mid, vivid green. Relative luminance 0.230; OKLCH L 59.5% C 0.183 H 142.0°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#28981F
RGBrgb(40, 152, 31)
HSLhsl(116, 66%, 36%)
HSVhsv(116, 80%, 60%)
CMYKcmyk(73.7%, 0%, 79.6%, 40.4%)
CIE-LABlab(55.08, -53.12, 50.52)
CIE-LCHlch(55.08, 73.31, 136.44°)
OKLaboklab(59.53% -0.1446 0.1129)
OKLCHoklch(59.53% 0.183 142)
XYZxyz(12.3499, 23.0051, 5.0856)
Luminance0.2301 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28981F #8F1F98
analogous
#64981F #28981F #1F9852
triadic
#28981F #1F2898 #981F28
tetradic
#28981F #1F6498 #8F1F98 #98521F
square
#28981F #1F6498 #8F1F98 #98521F
split-complementary
#28981F #521F98 #981F64
monochromatic
#0D320A #1B6515 #28981F #35CB29 #5FDC55

Accessibility & contrast

On white

3.75
#28981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#28981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28981F
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28981F#FFFFFF#000000##000000
##28981F1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#8F812D
Tritanopia (blue-blind)
#009381
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #28981f;
/* rgb */ color: rgb(40, 152, 31);
/* oklch */ color: oklch(59.5% 0.183 142.0);
Tailwind
colors: {
  custom: {
    50: '#75b765',
    500: '#28981f',
    950: '#000000',
  },
}
SCSS
$custom: #28981f;
$custom-light: #75b765;
$custom-dark: #000000;
JSON
{
  "hex": "#28981f",
  "rgb": {
    "r": 40,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 115.537,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59534,
    "c": 0.18346,
    "h": 142
  },
  "luminance": 0.23007
}

Semantic roles & 50–950 ramp

primary
#28981F
secondary
#B853C0
accent
#3FE9DC
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #28981F

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

Preview Lab → · Contrast checker → · Palette generator →

#28981F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva