#508D22#508D22

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

Color values

HEX#508D22
RGBrgb(80, 141, 34)
HSLhsl(94, 61%, 34%)
HSVhsv(94, 76%, 55%)
CMYKcmyk(43.3%, 0%, 75.9%, 44.7%)
CIE-LABlab(52.81, -38.17, 47.74)
CIE-LCHlch(52.81, 61.12, 128.64°)
OKLaboklab(58.04% -0.1067 0.107)
OKLCHoklch(58.04% 0.151 134.9)
XYZxyz(13.1216, 20.8700, 4.8500)
Luminance0.2087 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D22 #5F228D
analogous
#868D22 #508D22 #228D2A
triadic
#508D22 #22508D #8D2250
tetradic
#508D22 #22868D #5F228D #8D2A22
square
#508D22 #22868D #5F228D #8D2A22
split-complementary
#508D22 #2A228D #8D2286
monochromatic
#182A0A #345C16 #508D22 #6CBE2E #8CD654

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D22#FFFFFF#000000##000000
##508D221.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)
#92810C
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d22;
/* rgb */ color: rgb(80, 141, 34);
/* oklch */ color: oklch(58.0% 0.151 134.9);
Tailwind
colors: {
  custom: {
    50: '#87af65',
    500: '#508d22',
    950: '#000000',
  },
}
SCSS
$custom: #508d22;
$custom-light: #87af65;
$custom-dark: #000000;
JSON
{
  "hex": "#508d22",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 94.206,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5804,
    "c": 0.15111,
    "h": 134.9
  },
  "luminance": 0.20871
}

Semantic roles & 50–950 ramp

primary
#508D22
secondary
#8D51B9
accent
#44E49F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D22

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

Preview Lab → · Contrast checker → · Palette generator →

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