#508221#508221

#508221 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.1% C 0.137 H 133.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#508221
RGBrgb(80, 130, 33)
HSLhsl(91, 60%, 32%)
HSVhsv(91, 75%, 51%)
CMYKcmyk(38.5%, 0%, 74.6%, 49%)
CIE-LABlab(49.23, -33.39, 44.56)
CIE-LCHlch(49.23, 55.68, 126.85°)
OKLaboklab(55.11% -0.0938 0.1002)
OKLCHoklch(55.11% 0.137 133.1)
XYZxyz(11.5652, 17.7800, 4.2611)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508221 #532182
analogous
#818221 #508221 #218223
triadic
#508221 #215082 #822150
tetradic
#508221 #218182 #532182 #822321
square
#508221 #218182 #532182 #822321
split-complementary
#508221 #232182 #822181
monochromatic
#142008 #325115 #508221 #6EB32D #8DD24C

Accessibility & contrast

On white

4.61
#508221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#508221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508221
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508221#FFFFFF#000000##FFFFFF
##5082211.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87780F
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#507D6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508221;
/* rgb */ color: rgb(80, 130, 33);
/* oklch */ color: oklch(55.1% 0.137 133.1);
Tailwind
colors: {
  custom: {
    50: '#85a663',
    500: '#508221',
    950: '#000000',
  },
}
SCSS
$custom: #508221;
$custom-light: #85a663;
$custom-dark: #000000;
JSON
{
  "hex": "#508221",
  "rgb": {
    "r": 80,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 90.928,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55109,
    "c": 0.13729,
    "h": 133.1
  },
  "luminance": 0.17781
}

Semantic roles & 50–950 ramp

primary
#508221
secondary
#814AB4
accent
#45E396
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #508221

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

Preview Lab → · Contrast checker → · Palette generator →

#508221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva