#508E1D#508E1D

#508E1D is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.3% C 0.155 H 134.6°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#508E1D
RGBrgb(80, 142, 29)
HSLhsl(93, 66%, 34%)
HSVhsv(93, 80%, 56%)
CMYKcmyk(43.7%, 0%, 79.6%, 44.3%)
CIE-LABlab(53.10, -38.90, 49.75)
CIE-LCHlch(53.10, 63.16, 128.02°)
OKLaboklab(58.27% -0.109 0.1104)
OKLCHoklch(58.27% 0.155 134.6)
XYZxyz(13.2028, 21.1394, 4.5468)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E1D #5B1D8E
analogous
#888E1D #508E1D #1D8E22
triadic
#508E1D #1D508E #8E1D50
tetradic
#508E1D #1D888E #5B1D8E #8E221D
square
#508E1D #1D888E #5B1D8E #8E221D
split-complementary
#508E1D #221D8E #8E1D88
monochromatic
#172808 #335B13 #508E1D #6DC127 #8CDA4B

Accessibility & contrast

On white

4.02
#508E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#508E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E1D
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E1D#FFFFFF#000000##000000
##508E1D1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e1d;
/* rgb */ color: rgb(80, 142, 29);
/* oklch */ color: oklch(58.3% 0.155 134.6);
Tailwind
colors: {
  custom: {
    50: '#87af63',
    500: '#508e1d',
    950: '#000000',
  },
}
SCSS
$custom: #508e1d;
$custom-light: #87af63;
$custom-dark: #000000;
JSON
{
  "hex": "#508e1d",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 29
  },
  "hsl": {
    "h": 92.92,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58272,
    "c": 0.15519,
    "h": 134.6
  },
  "luminance": 0.2114
}

Semantic roles & 50–950 ramp

primary
#508E1D
secondary
#894ABD
accent
#3FE99C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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