#508F22#508F22

#508F22 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.154 H 135.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#508F22
RGBrgb(80, 143, 34)
HSLhsl(95, 62%, 35%)
HSVhsv(95, 76%, 56%)
CMYKcmyk(44.1%, 0%, 76.2%, 43.9%)
CIE-LABlab(53.45, -39.02, 48.37)
CIE-LCHlch(53.45, 62.15, 128.89°)
OKLaboklab(58.57% -0.109 0.1083)
OKLCHoklch(58.57% 0.154 135.2)
XYZxyz(13.4192, 21.4651, 4.9492)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F22 #61228F
analogous
#878F22 #508F22 #228F2B
triadic
#508F22 #22508F #8F2250
tetradic
#508F22 #22878F #61228F #8F2B22
square
#508F22 #22878F #61228F #8F2B22
split-complementary
#508F22 #2B228F #8F2287
monochromatic
#192C0A #345E16 #508F22 #6CC02E #8CD755

Accessibility & contrast

On white

3.97
#508F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#508F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F22
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F22#FFFFFF#000000##000000
##508F221.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830B
Deuteranopia (green-blind)
#8C7E2D
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f22;
/* rgb */ color: rgb(80, 143, 34);
/* oklch */ color: oklch(58.6% 0.154 135.2);
Tailwind
colors: {
  custom: {
    50: '#87b065',
    500: '#508f22',
    950: '#000000',
  },
}
SCSS
$custom: #508f22;
$custom-light: #87b065;
$custom-dark: #000000;
JSON
{
  "hex": "#508f22",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 94.679,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58571,
    "c": 0.15368,
    "h": 135.2
  },
  "luminance": 0.21466
}

Semantic roles & 50–950 ramp

primary
#508F22
secondary
#8F52BA
accent
#43E5A0
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F22

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

Preview Lab → · Contrast checker → · Palette generator →

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