#508D40#508D40

#508D40 is a mid, vivid green. Relative luminance 0.211; OKLCH L 58.4% C 0.127 H 139.5°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#508D40
RGBrgb(80, 141, 64)
HSLhsl(108, 38%, 40%)
HSVhsv(108, 55%, 55%)
CMYKcmyk(43.3%, 0%, 54.6%, 44.7%)
CIE-LABlab(53.09, -35.25, 34.65)
CIE-LCHlch(53.09, 49.43, 135.50°)
OKLaboklab(58.36% -0.0966 0.0827)
OKLCHoklch(58.36% 0.127 139.5)
XYZxyz(13.7581, 21.1246, 8.2020)
Luminance0.2112 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D40 #7D408D
analogous
#778D40 #508D40 #408D56
triadic
#508D40 #40508D #8D4050
tetradic
#508D40 #40778D #7D408D #8D5640
square
#508D40 #40778D #7D408D #8D5640
split-complementary
#508D40 #56408D #8D4077
monochromatic
#20391A #38632D #508D40 #6AB357 #90C681

Accessibility & contrast

On white

4.02
#508D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#508D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D40
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D40#FFFFFF#000000##000000
##508D401.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#918239
Deuteranopia (green-blind)
#887D45
Tritanopia (blue-blind)
#4B897C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508d40;
/* rgb */ color: rgb(80, 141, 64);
/* oklch */ color: oklch(58.4% 0.127 139.5);
Tailwind
colors: {
  custom: {
    50: '#85af77',
    500: '#508d40',
    950: '#000000',
  },
}
SCSS
$custom: #508d40;
$custom-light: #85af77;
$custom-dark: #000000;
JSON
{
  "hex": "#508d40",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 107.532,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.58357,
    "c": 0.12715,
    "h": 139.5
  },
  "luminance": 0.21125
}

Semantic roles & 50–950 ramp

primary
#508D40
secondary
#A578B0
accent
#5ACEB6
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0B1009
muted
#7C7F7B

Preview Lab

Preview with #508D40

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

Preview Lab → · Contrast checker → · Palette generator →

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