#28872F#28872F

#28872F is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.153 H 144.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#28872F
RGBrgb(40, 135, 47)
HSLhsl(124, 54%, 34%)
HSVhsv(124, 70%, 53%)
CMYKcmyk(70.4%, 0%, 65.2%, 47.1%)
CIE-LABlab(49.48, -45.78, 38.38)
CIE-LCHlch(49.48, 59.74, 140.02°)
OKLaboklab(54.93% -0.1239 0.0894)
OKLCHoklch(54.93% 0.153 144.2)
XYZxyz(10.0515, 17.9832, 5.6302)
Luminance0.1798 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28872F #872880
analogous
#518728 #28872F #28875F
triadic
#28872F #2F2887 #872F28
tetradic
#28872F #285187 #872880 #875F28
square
#28872F #285187 #872880 #875F28
split-complementary
#28872F #5F2887 #872851
monochromatic
#0C290E #1A581F #28872F #36B63F #5BCE63

Accessibility & contrast

On white

4.57
#28872F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#28872F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28872F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28872F#FFFFFF#000000##000000
##28872F1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A25
Deuteranopia (green-blind)
#7E7337
Tritanopia (blue-blind)
#0A8374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #28872f;
/* rgb */ color: rgb(40, 135, 47);
/* oklch */ color: oklch(54.9% 0.153 144.2);
Tailwind
colors: {
  custom: {
    50: '#70ab6b',
    500: '#28872f',
    950: '#000000',
  },
}
SCSS
$custom: #28872f;
$custom-light: #70ab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#28872f",
  "rgb": {
    "r": 40,
    "g": 135,
    "b": 47
  },
  "hsl": {
    "h": 124.421,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54926,
    "c": 0.15284,
    "h": 144.2
  },
  "luminance": 0.17984
}

Semantic roles & 50–950 ramp

primary
#28872F
secondary
#B457AD
accent
#4AD3DE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #28872F

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

Preview Lab → · Contrast checker → · Palette generator →

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