#508D19#508D19

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

Color values

HEX#508D19
RGBrgb(80, 141, 25)
HSLhsl(92, 70%, 33%)
HSVhsv(92, 82%, 55%)
CMYKcmyk(43.3%, 0%, 82.3%, 44.7%)
CIE-LABlab(52.76, -38.70, 50.68)
CIE-LCHlch(52.76, 63.77, 127.36°)
OKLaboklab(57.98% -0.1087 0.1118)
OKLCHoklch(57.98% 0.156 134.2)
XYZxyz(13.0084, 20.8247, 4.2537)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D19 #56198D
analogous
#8A8D19 #508D19 #198D1C
triadic
#508D19 #19508D #8D1950
tetradic
#508D19 #198A8D #56198D #8D1C19
square
#508D19 #198A8D #56198D #8D1C19
split-complementary
#508D19 #1C198D #8D198A
monochromatic
#152507 #335910 #508D19 #6DC122 #8CDE43

Accessibility & contrast

On white

4.07
#508D19 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#508D19 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D19
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D19#FFFFFF#000000##000000
##508D191.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #508d19;
/* rgb */ color: rgb(80, 141, 25);
/* oklch */ color: oklch(58.0% 0.156 134.2);
Tailwind
colors: {
  custom: {
    50: '#87af61',
    500: '#508d19',
    950: '#000000',
  },
}
SCSS
$custom: #508d19;
$custom-light: #87af61;
$custom-dark: #000000;
JSON
{
  "hex": "#508d19",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 25
  },
  "hsl": {
    "h": 91.552,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57983,
    "c": 0.15593,
    "h": 134.2
  },
  "luminance": 0.20825
}

Semantic roles & 50–950 ramp

primary
#508D19
secondary
#8443BF
accent
#3BED98
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508D19

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

Preview Lab → · Contrast checker → · Palette generator →

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