#28821F#28821F

#28821F is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.4% C 0.158 H 141.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#28821F
RGBrgb(40, 130, 31)
HSLhsl(115, 61%, 32%)
HSVhsv(115, 76%, 51%)
CMYKcmyk(69.2%, 0%, 76.2%, 49%)
CIE-LABlab(47.64, -45.54, 43.22)
CIE-LCHlch(47.64, 62.79, 136.50°)
OKLaboklab(53.36% -0.1241 0.0976)
OKLCHoklch(53.36% 0.158 141.8)
XYZxyz(9.1045, 16.5144, 4.0038)
Luminance0.1651 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28821F #791F82
analogous
#5A821F #28821F #1F8248
triadic
#28821F #1F2882 #821F28
tetradic
#28821F #1F5A82 #791F82 #82481F
square
#28821F #1F5A82 #791F82 #82481F
split-complementary
#28821F #481F82 #821F5A
monochromatic
#0A1F07 #195113 #28821F #37B32B #55D348

Accessibility & contrast

On white

4.88
#28821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#28821F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28821F
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28821F#FFFFFF#000000##FFFFFF
##28821F1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750C
Deuteranopia (green-blind)
#7B6E29
Tritanopia (blue-blind)
#147E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #28821f;
/* rgb */ color: rgb(40, 130, 31);
/* oklch */ color: oklch(53.4% 0.158 141.8);
Tailwind
colors: {
  custom: {
    50: '#70a762',
    500: '#28821f',
    950: '#000000',
  },
}
SCSS
$custom: #28821f;
$custom-light: #70a762;
$custom-dark: #000000;
JSON
{
  "hex": "#28821f",
  "rgb": {
    "r": 40,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 114.545,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53365,
    "c": 0.15793,
    "h": 141.8
  },
  "luminance": 0.16515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28821F

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

Preview Lab → · Contrast checker → · Palette generator →

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