#28771C#28771C

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

Color values

HEX#28771C
RGBrgb(40, 119, 28)
HSLhsl(112, 62%, 29%)
HSVhsv(112, 76%, 47%)
CMYKcmyk(66.4%, 0%, 76.5%, 53.3%)
CIE-LABlab(43.84, -41.76, 40.54)
CIE-LCHlch(43.84, 58.20, 135.85°)
OKLaboklab(50.21% -0.1141 0.0916)
OKLCHoklch(50.21% 0.146 141.2)
XYZxyz(7.6811, 13.7279, 3.3433)
Luminance0.1373 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28771C #6B1C77
analogous
#56771C #28771C #1C773E
triadic
#28771C #1C2877 #771C28
tetradic
#28771C #1C5677 #6B1C77 #773E1C
square
#28771C #1C5677 #6B1C77 #773E1C
split-complementary
#28771C #3E1C77 #771C56
monochromatic
#081906 #174510 #28771C #39A928 #50D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28771C#FFFFFF#000000##FFFFFF
##28771C1.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)
#7A6C0B
Deuteranopia (green-blind)
#716525
Tritanopia (blue-blind)
#1A7365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #28771c;
/* rgb */ color: rgb(40, 119, 28);
/* oklch */ color: oklch(50.2% 0.146 141.2);
Tailwind
colors: {
  custom: {
    50: '#6d9f5f',
    500: '#28771c',
    950: '#000000',
  },
}
SCSS
$custom: #28771c;
$custom-light: #6d9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#28771c",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 112.088,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50209,
    "c": 0.14631,
    "h": 141.2
  },
  "luminance": 0.13729
}

Semantic roles & 50–950 ramp

primary
#28771C
secondary
#9D44AB
accent
#43E5D0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28771C

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

Preview Lab → · Contrast checker → · Palette generator →

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