#508D1E#508D1E

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

Color values

HEX#508D1E
RGBrgb(80, 141, 30)
HSLhsl(93, 65%, 34%)
HSVhsv(93, 79%, 55%)
CMYKcmyk(43.3%, 0%, 78.7%, 44.7%)
CIE-LABlab(52.78, -38.42, 49.12)
CIE-LCHlch(52.78, 62.36, 128.03°)
OKLaboklab(58.01% -0.1077 0.1093)
OKLCHoklch(58.01% 0.153 134.6)
XYZxyz(13.0672, 20.8482, 4.5636)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D1E #5B1E8D
analogous
#878D1E #508D1E #1E8D23
triadic
#508D1E #1E508D #8D1E50
tetradic
#508D1E #1E878D #5B1E8D #8D231E
square
#508D1E #1E878D #5B1E8D #8D231E
split-complementary
#508D1E #231E8D #8D1E87
monochromatic
#172809 #335B13 #508D1E #6DBF29 #8CD94C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D1E#FFFFFF#000000##000000
##508D1E1.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)
#938102
Deuteranopia (green-blind)
#8A7C2A
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d1e;
/* rgb */ color: rgb(80, 141, 30);
/* oklch */ color: oklch(58.0% 0.153 134.6);
Tailwind
colors: {
  custom: {
    50: '#87af63',
    500: '#508d1e',
    950: '#000000',
  },
}
SCSS
$custom: #508d1e;
$custom-light: #87af63;
$custom-dark: #000000;
JSON
{
  "hex": "#508d1e",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 30
  },
  "hsl": {
    "h": 92.973,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58012,
    "c": 0.1534,
    "h": 134.6
  },
  "luminance": 0.20849
}

Semantic roles & 50–950 ramp

primary
#508D1E
secondary
#894BBC
accent
#40E89C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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