#28771F#28771F

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

Color values

HEX#28771F
RGBrgb(40, 119, 31)
HSLhsl(114, 59%, 29%)
HSVhsv(114, 74%, 47%)
CMYKcmyk(66.4%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.86, -41.50, 39.37)
CIE-LCHlch(43.86, 57.20, 136.51°)
OKLaboklab(50.23% -0.1132 0.0896)
OKLCHoklch(50.23% 0.144 141.7)
XYZxyz(7.7188, 13.7429, 3.5419)
Luminance0.1374 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28771F #6E1F77
analogous
#54771F #28771F #1F7742
triadic
#28771F #1F2877 #771F28
tetradic
#28771F #1F5477 #6E1F77 #77421F
square
#28771F #1F5477 #6E1F77 #77421F
split-complementary
#28771F #421F77 #771F54
monochromatic
#081806 #184612 #28771F #38A82C #51CE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28771F#FFFFFF#000000##FFFFFF
##28771F1.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)
#7A6C11
Deuteranopia (green-blind)
#706528
Tritanopia (blue-blind)
#1A7366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #28771f;
/* rgb */ color: rgb(40, 119, 31);
/* oklch */ color: oklch(50.2% 0.144 141.7);
Tailwind
colors: {
  custom: {
    50: '#6d9f60',
    500: '#28771f',
    950: '#000000',
  },
}
SCSS
$custom: #28771f;
$custom-light: #6d9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#28771f",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 113.864,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50234,
    "c": 0.14437,
    "h": 141.7
  },
  "luminance": 0.13744
}

Semantic roles & 50–950 ramp

primary
#28771F
secondary
#A047AB
accent
#46E2D2
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28771F

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

Preview Lab → · Contrast checker → · Palette generator →

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