#508D21#508D21

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

Color values

HEX#508D21
RGBrgb(80, 141, 33)
HSLhsl(94, 62%, 34%)
HSVhsv(94, 77%, 55%)
CMYKcmyk(43.3%, 0%, 76.6%, 44.7%)
CIE-LABlab(52.80, -38.23, 48.09)
CIE-LCHlch(52.80, 61.44, 128.48°)
OKLaboklab(58.03% -0.1069 0.1076)
OKLCHoklch(58.03% 0.152 134.8)
XYZxyz(13.1074, 20.8643, 4.7751)
Luminance0.2087 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D21 #5E218D
analogous
#868D21 #508D21 #218D28
triadic
#508D21 #21508D #8D2150
tetradic
#508D21 #21868D #5E218D #8D2821
square
#508D21 #21868D #5E218D #8D2821
split-complementary
#508D21 #28218D #8D2186
monochromatic
#182A0A #345B15 #508D21 #6CBF2D #8CD652

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D21#FFFFFF#000000##000000
##508D211.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)
#928109
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d21;
/* rgb */ color: rgb(80, 141, 33);
/* oklch */ color: oklch(58.0% 0.152 134.8);
Tailwind
colors: {
  custom: {
    50: '#87af65',
    500: '#508d21',
    950: '#000000',
  },
}
SCSS
$custom: #508d21;
$custom-light: #87af65;
$custom-dark: #000000;
JSON
{
  "hex": "#508d21",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 93.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58033,
    "c": 0.1517,
    "h": 134.8
  },
  "luminance": 0.20865
}

Semantic roles & 50–950 ramp

primary
#508D21
secondary
#8C50BA
accent
#43E59E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D21

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

Preview Lab → · Contrast checker → · Palette generator →

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