#28841F#28841F

#28841F is a mid, vivid green. Relative luminance 0.171; OKLCH L 53.9% C 0.160 H 141.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#28841F
RGBrgb(40, 132, 31)
HSLhsl(115, 62%, 32%)
HSVhsv(115, 77%, 52%)
CMYKcmyk(69.7%, 0%, 76.5%, 48.2%)
CIE-LABlab(48.33, -46.26, 43.91)
CIE-LCHlch(48.33, 63.78, 136.50°)
OKLaboklab(53.93% -0.1261 0.0991)
OKLCHoklch(53.93% 0.16 141.8)
XYZxyz(9.3731, 17.0516, 4.0934)
Luminance0.1705 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28841F #7B1F84
analogous
#5B841F #28841F #1F8448
triadic
#28841F #1F2884 #841F28
tetradic
#28841F #1F5B84 #7B1F84 #84481F
square
#28841F #1F5B84 #7B1F84 #84481F
split-complementary
#28841F #481F84 #841F5B
monochromatic
#0A2108 #195213 #28841F #37B62B #56D449

Accessibility & contrast

On white

4.76
#28841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#28841F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28841F
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28841F#FFFFFF#000000##FFFFFF
##28841F1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7C702A
Tritanopia (blue-blind)
#138071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #28841f;
/* rgb */ color: rgb(40, 132, 31);
/* oklch */ color: oklch(53.9% 0.160 141.8);
Tailwind
colors: {
  custom: {
    50: '#70a962',
    500: '#28841f',
    950: '#000000',
  },
}
SCSS
$custom: #28841f;
$custom-light: #70a962;
$custom-dark: #000000;
JSON
{
  "hex": "#28841f",
  "rgb": {
    "r": 40,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 114.653,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53931,
    "c": 0.16034,
    "h": 141.8
  },
  "luminance": 0.17053
}

Semantic roles & 50–950 ramp

primary
#28841F
secondary
#AD48B7
accent
#43E5D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #28841F

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

Preview Lab → · Contrast checker → · Palette generator →

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