#508D5F#508D5F

#508D5F is a mid, moderate green. Relative luminance 0.216; OKLCH L 58.9% C 0.095 H 150.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#508D5F
RGBrgb(80, 141, 95)
HSLhsl(135, 28%, 43%)
HSVhsv(135, 43%, 55%)
CMYKcmyk(43.3%, 0%, 32.6%, 44.7%)
CIE-LABlab(53.58, -30.32, 18.53)
CIE-LCHlch(53.58, 35.54, 148.57°)
OKLaboklab(58.92% -0.0827 0.0467)
OKLCHoklch(58.92% 0.095 150.5)
XYZxyz(14.8978, 21.5805, 14.2047)
Luminance0.2158 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D5F #8D507E
analogous
#5F8D50 #508D5F #508D7D
triadic
#508D5F #5F508D #8D5F50
tetradic
#508D5F #505F8D #8D507E #8D7D50
square
#508D5F #505F8D #8D507E #8D7D50
split-complementary
#508D5F #7D508D #8D505F
monochromatic
#243F2A #3A6645 #508D5F #6EAD7D #95C3A0

Accessibility & contrast

On white

3.95
#508D5F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#508D5F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D5F
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D5F#FFFFFF#000000##000000
##508D5F1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E845C
Deuteranopia (green-blind)
#847E62
Tritanopia (blue-blind)
#458B81
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508d5f;
/* rgb */ color: rgb(80, 141, 95);
/* oklch */ color: oklch(58.9% 0.095 150.5);
Tailwind
colors: {
  custom: {
    50: '#84af8c',
    500: '#508d5f',
    950: '#000000',
  },
}
SCSS
$custom: #508d5f;
$custom-light: #84af8c;
$custom-dark: #000000;
JSON
{
  "hex": "#508d5f",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 95
  },
  "hsl": {
    "h": 134.754,
    "s": 27.602,
    "l": 43.333
  },
  "oklch": {
    "l": 0.58921,
    "c": 0.09501,
    "h": 150.5
  },
  "luminance": 0.21581
}

Semantic roles & 50–950 ramp

primary
#508D5F
secondary
#AF89A6
accent
#64ACC4
background
#F8FAF8
surface
#EFF4F0
border
#CACECB
text
#0B100C
muted
#7C7F7D

Preview Lab

Preview with #508D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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