#508D1D#508D1D

#508D1D is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.0% C 0.154 H 134.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#508D1D
RGBrgb(80, 141, 29)
HSLhsl(93, 66%, 33%)
HSVhsv(93, 79%, 55%)
CMYKcmyk(43.3%, 0%, 79.4%, 44.7%)
CIE-LABlab(52.78, -38.48, 49.45)
CIE-LCHlch(52.78, 62.65, 127.89°)
OKLaboklab(58.01% -0.1079 0.1098)
OKLCHoklch(58.01% 0.154 134.5)
XYZxyz(13.0547, 20.8432, 4.4974)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D1D #5A1D8D
analogous
#888D1D #508D1D #1D8D22
triadic
#508D1D #1D508D #8D1D50
tetradic
#508D1D #1D888D #5A1D8D #8D221D
square
#508D1D #1D888D #5A1D8D #8D221D
split-complementary
#508D1D #221D8D #8D1D88
monochromatic
#162708 #335A13 #508D1D #6DC027 #8CDA4B

Accessibility & contrast

On white

4.06
#508D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#508D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D1D
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D1D#FFFFFF#000000##000000
##508D1D1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d1d;
/* rgb */ color: rgb(80, 141, 29);
/* oklch */ color: oklch(58.0% 0.154 134.5);
Tailwind
colors: {
  custom: {
    50: '#87af63',
    500: '#508d1d',
    950: '#000000',
  },
}
SCSS
$custom: #508d1d;
$custom-light: #87af63;
$custom-dark: #000000;
JSON
{
  "hex": "#508d1d",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 92.679,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58006,
    "c": 0.15394,
    "h": 134.5
  },
  "luminance": 0.20844
}

Semantic roles & 50–950 ramp

primary
#508D1D
secondary
#884ABC
accent
#3FE99B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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