#508240#508240

#508240 is a mid, moderate green. Relative luminance 0.180; OKLCH L 55.5% C 0.110 H 138.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#508240
RGBrgb(80, 130, 64)
HSLhsl(105, 34%, 38%)
HSVhsv(105, 51%, 51%)
CMYKcmyk(38.5%, 0%, 50.8%, 49%)
CIE-LABlab(49.55, -30.19, 30.34)
CIE-LCHlch(49.55, 42.81, 134.86°)
OKLaboklab(55.47% -0.0828 0.0731)
OKLCHoklch(55.47% 0.11 138.5)
XYZxyz(12.2159, 18.0403, 7.6880)
Luminance0.1804 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508240 #724082
analogous
#718240 #508240 #408251
triadic
#508240 #405082 #824050
tetradic
#508240 #407182 #724082 #825140
square
#508240 #407182 #724082 #825140
split-complementary
#508240 #514082 #824071
monochromatic
#1E3018 #37592C #508240 #69AB54 #8DBF7D

Accessibility & contrast

On white

4.56
#508240 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#508240 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508240
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508240#FFFFFF#000000##000000
##5082401.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#86793A
Deuteranopia (green-blind)
#7E7444
Tritanopia (blue-blind)
#4D7E73
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #508240;
/* rgb */ color: rgb(80, 130, 64);
/* oklch */ color: oklch(55.5% 0.110 138.5);
Tailwind
colors: {
  custom: {
    50: '#84a676',
    500: '#508240',
    950: '#000000',
  },
}
SCSS
$custom: #508240;
$custom-light: #84a676;
$custom-dark: #000000;
JSON
{
  "hex": "#508240",
  "rgb": {
    "r": 80,
    "g": 130,
    "b": 64
  },
  "hsl": {
    "h": 105.455,
    "s": 34.021,
    "l": 38.039
  },
  "oklch": {
    "l": 0.5547,
    "c": 0.11047,
    "h": 138.5
  },
  "luminance": 0.18041
}

Semantic roles & 50–950 ramp

primary
#508240
secondary
#9D74AA
accent
#5ECAB0
background
#F8FAF7
surface
#EFF4ED
border
#CACEC8
text
#0B0F08
muted
#7C7F7B

Preview Lab

Preview with #508240

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

Preview Lab → · Contrast checker → · Palette generator →

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