#28831F#28831F

#28831F is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.6% C 0.159 H 141.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#28831F
RGBrgb(40, 131, 31)
HSLhsl(115, 62%, 32%)
HSVhsv(115, 76%, 51%)
CMYKcmyk(69.5%, 0%, 76.3%, 48.6%)
CIE-LABlab(47.98, -45.90, 43.56)
CIE-LCHlch(47.98, 63.28, 136.50°)
OKLaboklab(53.65% -0.1251 0.0983)
OKLCHoklch(53.65% 0.159 141.8)
XYZxyz(9.2382, 16.7817, 4.0484)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28831F #7A1F83
analogous
#5A831F #28831F #1F8348
triadic
#28831F #1F2883 #831F28
tetradic
#28831F #1F5A83 #7A1F83 #83481F
square
#28831F #1F5A83 #7A1F83 #83481F
split-complementary
#28831F #481F83 #831F5A
monochromatic
#0A2008 #195213 #28831F #37B42B #55D449

Accessibility & contrast

On white

4.82
#28831F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#28831F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28831F
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28831F#FFFFFF#000000##FFFFFF
##28831F1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760B
Deuteranopia (green-blind)
#7C6F2A
Tritanopia (blue-blind)
#147F70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #28831f;
/* rgb */ color: rgb(40, 131, 31);
/* oklch */ color: oklch(53.6% 0.159 141.8);
Tailwind
colors: {
  custom: {
    50: '#70a862',
    500: '#28831f',
    950: '#000000',
  },
}
SCSS
$custom: #28831f;
$custom-light: #70a862;
$custom-dark: #000000;
JSON
{
  "hex": "#28831f",
  "rgb": {
    "r": 40,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 114.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53648,
    "c": 0.15914,
    "h": 141.8
  },
  "luminance": 0.16783
}

Semantic roles & 50–950 ramp

primary
#28831F
secondary
#AC48B6
accent
#43E5D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #28831F

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

Preview Lab → · Contrast checker → · Palette generator →

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