#28771B#28771B

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

Color values

HEX#28771B
RGBrgb(40, 119, 27)
HSLhsl(112, 63%, 29%)
HSVhsv(112, 77%, 47%)
CMYKcmyk(66.4%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.83, -41.84, 40.92)
CIE-LCHlch(43.83, 58.53, 135.64°)
OKLaboklab(50.2% -0.1144 0.0923)
OKLCHoklch(50.2% 0.147 141.1)
XYZxyz(7.6693, 13.7231, 3.2814)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28771B #6A1B77
analogous
#56771B #28771B #1B773C
triadic
#28771B #1B2877 #771B28
tetradic
#28771B #1B5677 #6A1B77 #773C1B
square
#28771B #1B5677 #6A1B77 #773C1B
split-complementary
#28771B #3C1B77 #771B56
monochromatic
#081906 #174510 #28771B #39A926 #50D23A

Accessibility & contrast

On white

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

On black

3.74
#28771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##28771B#FFFFFF#000000##FFFFFF
##28771B1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28771b;
/* rgb */ color: rgb(40, 119, 27);
/* oklch */ color: oklch(50.2% 0.147 141.1);
Tailwind
colors: {
  custom: {
    50: '#6d9f5e',
    500: '#28771b',
    950: '#000000',
  },
}
SCSS
$custom: #28771b;
$custom-light: #6d9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#28771b",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 111.522,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50201,
    "c": 0.14694,
    "h": 141.1
  },
  "luminance": 0.13724
}

Semantic roles & 50–950 ramp

primary
#28771B
secondary
#9D42AB
accent
#42E6CF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28771B

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

Preview Lab → · Contrast checker → · Palette generator →

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