#508F40#508F40

#508F40 is a mid, vivid green. Relative luminance 0.217; OKLCH L 58.9% C 0.130 H 139.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#508F40
RGBrgb(80, 143, 64)
HSLhsl(108, 38%, 41%)
HSVhsv(108, 55%, 56%)
CMYKcmyk(44.1%, 0%, 55.2%, 43.9%)
CIE-LABlab(53.73, -36.15, 35.42)
CIE-LCHlch(53.73, 50.60, 135.58°)
OKLaboklab(58.88% -0.0991 0.0843)
OKLCHoklch(58.88% 0.13 139.6)
XYZxyz(14.0556, 21.7197, 8.3012)
Luminance0.2172 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F40 #7F408F
analogous
#778F40 #508F40 #408F57
triadic
#508F40 #40508F #8F4050
tetradic
#508F40 #40778F #7F408F #8F5740
square
#508F40 #40778F #7F408F #8F5740
split-complementary
#508F40 #57408F #8F4077
monochromatic
#213A1A #38652D #508F40 #6BB458 #90C782

Accessibility & contrast

On white

3.93
#508F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#508F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F40
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F40#FFFFFF#000000##000000
##508F401.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938439
Deuteranopia (green-blind)
#8A7E46
Tritanopia (blue-blind)
#4B8B7D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f40;
/* rgb */ color: rgb(80, 143, 64);
/* oklch */ color: oklch(58.9% 0.130 139.6);
Tailwind
colors: {
  custom: {
    50: '#85b077',
    500: '#508f40',
    950: '#000000',
  },
}
SCSS
$custom: #508f40;
$custom-light: #85b077;
$custom-dark: #000000;
JSON
{
  "hex": "#508f40",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 64
  },
  "hsl": {
    "h": 107.848,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.58883,
    "c": 0.1301,
    "h": 139.6
  },
  "luminance": 0.21721
}

Semantic roles & 50–950 ramp

primary
#508F40
secondary
#A679B2
accent
#5ACEB7
background
#F8FAF7
surface
#F0F5ED
border
#CBCFC8
text
#0B1009
muted
#7C7F7B

Preview Lab

Preview with #508F40

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

Preview Lab → · Contrast checker → · Palette generator →

#508F40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva