#28771E#28771E

#28771E is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.2% C 0.145 H 141.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#28771E
RGBrgb(40, 119, 30)
HSLhsl(113, 60%, 29%)
HSVhsv(113, 75%, 47%)
CMYKcmyk(66.4%, 0%, 74.8%, 53.3%)
CIE-LABlab(43.85, -41.59, 39.77)
CIE-LCHlch(43.85, 57.54, 136.28°)
OKLaboklab(50.22% -0.1135 0.0903)
OKLCHoklch(50.22% 0.145 141.5)
XYZxyz(7.7058, 13.7377, 3.4736)
Luminance0.1374 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28771E #6D1E77
analogous
#55771E #28771E #1E7740
triadic
#28771E #1E2877 #771E28
tetradic
#28771E #1E5577 #6D1E77 #77401E
square
#28771E #1E5577 #6D1E77 #77401E
split-complementary
#28771E #401E77 #771E55
monochromatic
#081806 #184612 #28771E #38A82A #50CF40

Accessibility & contrast

On white

5.60
#28771E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#28771E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28771E
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28771E#FFFFFF#000000##FFFFFF
##28771E1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C0F
Deuteranopia (green-blind)
#716527
Tritanopia (blue-blind)
#1A7366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #28771e;
/* rgb */ color: rgb(40, 119, 30);
/* oklch */ color: oklch(50.2% 0.145 141.5);
Tailwind
colors: {
  custom: {
    50: '#6d9f60',
    500: '#28771e',
    950: '#000000',
  },
}
SCSS
$custom: #28771e;
$custom-light: #6d9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#28771e",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 113.258,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50225,
    "c": 0.14503,
    "h": 141.5
  },
  "luminance": 0.13739
}

Semantic roles & 50–950 ramp

primary
#28771E
secondary
#9F46AB
accent
#45E3D1
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28771E

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

Preview Lab → · Contrast checker → · Palette generator →

#28771E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva