#28771D#28771D

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

Color values

HEX#28771D
RGBrgb(40, 119, 29)
HSLhsl(113, 61%, 29%)
HSVhsv(113, 76%, 47%)
CMYKcmyk(66.4%, 0%, 75.6%, 53.3%)
CIE-LABlab(43.85, -41.68, 40.16)
CIE-LCHlch(43.85, 57.88, 136.06°)
OKLaboklab(50.22% -0.1138 0.0909)
OKLCHoklch(50.22% 0.146 141.4)
XYZxyz(7.6933, 13.7327, 3.4074)
Luminance0.1373 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28771D #6C1D77
analogous
#55771D #28771D #1D773F
triadic
#28771D #1D2877 #771D28
tetradic
#28771D #1D5577 #6C1D77 #773F1D
square
#28771D #1D5577 #6C1D77 #773F1D
split-complementary
#28771D #3F1D77 #771D55
monochromatic
#081906 #174611 #28771D #39A829 #50D03E

Accessibility & contrast

On white

5.61
#28771D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #28771D
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28771D#FFFFFF#000000##FFFFFF
##28771D1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C0D
Deuteranopia (green-blind)
#716526
Tritanopia (blue-blind)
#1A7365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #28771d;
/* rgb */ color: rgb(40, 119, 29);
/* oklch */ color: oklch(50.2% 0.146 141.4);
Tailwind
colors: {
  custom: {
    50: '#6d9f5f',
    500: '#28771d',
    950: '#000000',
  },
}
SCSS
$custom: #28771d;
$custom-light: #6d9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#28771d",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 112.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50217,
    "c": 0.14568,
    "h": 141.4
  },
  "luminance": 0.13733
}

Semantic roles & 50–950 ramp

primary
#28771D
secondary
#9E45AB
accent
#44E4D0
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28771D

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

Preview Lab → · Contrast checker → · Palette generator →

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