#508142#508142

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

Color values

HEX#508142
RGBrgb(80, 129, 66)
HSLhsl(107, 32%, 38%)
HSVhsv(107, 49%, 51%)
CMYKcmyk(38%, 0%, 48.8%, 49.4%)
CIE-LABlab(49.25, -29.44, 28.91)
CIE-LCHlch(49.25, 41.26, 135.52°)
OKLaboklab(55.24% -0.0806 0.0701)
OKLCHoklch(55.24% 0.107 139)
XYZxyz(12.1415, 17.7987, 7.9490)
Luminance0.1780 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508142 #734281
analogous
#6F8142 #508142 #428153
triadic
#508142 #425081 #814250
tetradic
#508142 #426F81 #734281 #815342
square
#508142 #426F81 #734281 #815342
split-complementary
#508142 #534281 #81426F
monochromatic
#1E3019 #37592D #508142 #69A957 #8DBE80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508142#FFFFFF#000000##FFFFFF
##5081421.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)
#84783D
Deuteranopia (green-blind)
#7D7346
Tritanopia (blue-blind)
#4D7D72
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508142;
/* rgb */ color: rgb(80, 129, 66);
/* oklch */ color: oklch(55.2% 0.107 139.0);
Tailwind
colors: {
  custom: {
    50: '#84a677',
    500: '#508142',
    950: '#000000',
  },
}
SCSS
$custom: #508142;
$custom-light: #84a677;
$custom-dark: #000000;
JSON
{
  "hex": "#508142",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 66
  },
  "hsl": {
    "h": 106.667,
    "s": 32.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.5524,
    "c": 0.10682,
    "h": 139
  },
  "luminance": 0.17799
}

Semantic roles & 50–950 ramp

primary
#508142
secondary
#9D76A9
accent
#5FC8B1
background
#F8FAF7
surface
#EFF4ED
border
#CACEC8
text
#0B0F09
muted
#7C7F7B

Preview Lab

Preview with #508142

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

Preview Lab → · Contrast checker → · Palette generator →

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