#508D1F#508D1F

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

Color values

HEX#508D1F
RGBrgb(80, 141, 31)
HSLhsl(93, 64%, 34%)
HSVhsv(93, 78%, 55%)
CMYKcmyk(43.3%, 0%, 78%, 44.7%)
CIE-LABlab(52.79, -38.36, 48.78)
CIE-LCHlch(52.79, 62.06, 128.18°)
OKLaboklab(58.02% -0.1074 0.1087)
OKLCHoklch(58.02% 0.153 134.7)
XYZxyz(13.0802, 20.8534, 4.6320)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D1F #5C1F8D
analogous
#878D1F #508D1F #1F8D25
triadic
#508D1F #1F508D #8D1F50
tetradic
#508D1F #1F878D #5C1F8D #8D251F
square
#508D1F #1F878D #5C1F8D #8D251F
split-complementary
#508D1F #251F8D #8D1F87
monochromatic
#172909 #345B14 #508D1F #6CBF2A #8CD84E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D1F#FFFFFF#000000##000000
##508D1F1.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)
#938104
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d1f;
/* rgb */ color: rgb(80, 141, 31);
/* oklch */ color: oklch(58.0% 0.153 134.7);
Tailwind
colors: {
  custom: {
    50: '#87af64',
    500: '#508d1f',
    950: '#000000',
  },
}
SCSS
$custom: #508d1f;
$custom-light: #87af64;
$custom-dark: #000000;
JSON
{
  "hex": "#508d1f",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 93.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58019,
    "c": 0.15284,
    "h": 134.7
  },
  "luminance": 0.20854
}

Semantic roles & 50–950 ramp

primary
#508D1F
secondary
#8A4DBB
accent
#41E79D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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