#508C1D#508C1D

#508C1D is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.7% C 0.153 H 134.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#508C1D
RGBrgb(80, 140, 29)
HSLhsl(92, 66%, 33%)
HSVhsv(92, 79%, 55%)
CMYKcmyk(42.9%, 0%, 79.3%, 45.1%)
CIE-LABlab(52.45, -38.05, 49.14)
CIE-LCHlch(52.45, 62.15, 127.75°)
OKLaboklab(57.74% -0.1067 0.1092)
OKLCHoklch(57.74% 0.153 134.4)
XYZxyz(12.9079, 20.5496, 4.4485)
Luminance0.2055 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C1D #591D8C
analogous
#878C1D #508C1D #1D8C21
triadic
#508C1D #1D508C #8C1D50
tetradic
#508C1D #1D878C #591D8C #8C211D
square
#508C1D #1D878C #591D8C #8C211D
split-complementary
#508C1D #211D8C #8C1D87
monochromatic
#162708 #335912 #508C1D #6DBF28 #8CD94A

Accessibility & contrast

On white

4.11
#508C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#508C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C1D
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C1D#FFFFFF#000000##000000
##508C1D1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8A7B29
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c1d;
/* rgb */ color: rgb(80, 140, 29);
/* oklch */ color: oklch(57.7% 0.153 134.4);
Tailwind
colors: {
  custom: {
    50: '#87ae63',
    500: '#508c1d',
    950: '#000000',
  },
}
SCSS
$custom: #508c1d;
$custom-light: #87ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#508c1d",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 92.432,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5774,
    "c": 0.15267,
    "h": 134.4
  },
  "luminance": 0.2055
}

Semantic roles & 50–950 ramp

primary
#508C1D
secondary
#8749BC
accent
#3FE99B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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