#508140#508140

#508140 is a mid, moderate green. Relative luminance 0.178; OKLCH L 55.2% C 0.109 H 138.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#508140
RGBrgb(80, 129, 64)
HSLhsl(105, 34%, 38%)
HSVhsv(105, 50%, 51%)
CMYKcmyk(38%, 0%, 50.4%, 49.4%)
CIE-LABlab(49.22, -29.72, 29.95)
CIE-LCHlch(49.22, 42.19, 134.78°)
OKLaboklab(55.21% -0.0815 0.0723)
OKLCHoklch(55.21% 0.109 138.4)
XYZxyz(12.0835, 17.7756, 7.6438)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508140 #714081
analogous
#708140 #508140 #408150
triadic
#508140 #405081 #814050
tetradic
#508140 #407081 #714081 #815040
square
#508140 #407081 #714081 #815040
split-complementary
#508140 #504081 #814070
monochromatic
#1D2F17 #37582C #508140 #69AA54 #8DBE7D

Accessibility & contrast

On white

4.61
#508140 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#508140 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508140
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508140#FFFFFF#000000##FFFFFF
##5081401.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85783B
Deuteranopia (green-blind)
#7D7344
Tritanopia (blue-blind)
#4D7D72
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508140;
/* rgb */ color: rgb(80, 129, 64);
/* oklch */ color: oklch(55.2% 0.109 138.4);
Tailwind
colors: {
  custom: {
    50: '#84a676',
    500: '#508140',
    950: '#000000',
  },
}
SCSS
$custom: #508140;
$custom-light: #84a676;
$custom-dark: #000000;
JSON
{
  "hex": "#508140",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 64
  },
  "hsl": {
    "h": 105.231,
    "s": 33.679,
    "l": 37.843
  },
  "oklch": {
    "l": 0.55207,
    "c": 0.10891,
    "h": 138.4
  },
  "luminance": 0.17776
}

Semantic roles & 50–950 ramp

primary
#508140
secondary
#9C74A9
accent
#5ECAAF
background
#F8FAF7
surface
#EFF4ED
border
#CACEC8
text
#0B0F08
muted
#7C7F7B

Preview Lab

Preview with #508140

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

Preview Lab → · Contrast checker → · Palette generator →

#508140 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva