#508222#508222

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

Color values

HEX#508222
RGBrgb(80, 130, 34)
HSLhsl(91, 59%, 32%)
HSVhsv(91, 74%, 51%)
CMYKcmyk(38.5%, 0%, 73.8%, 49%)
CIE-LABlab(49.24, -33.32, 44.18)
CIE-LCHlch(49.24, 55.33, 127.02°)
OKLaboklab(55.12% -0.0936 0.0996)
OKLCHoklch(55.12% 0.137 133.2)
XYZxyz(11.5794, 17.7857, 4.3359)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508222 #542282
analogous
#808222 #508222 #228224
triadic
#508222 #225082 #822250
tetradic
#508222 #228082 #542282 #822422
square
#508222 #228082 #542282 #822422
split-complementary
#508222 #242282 #822280
monochromatic
#142109 #325115 #508222 #6EB32F #8CD14E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508222#FFFFFF#000000##FFFFFF
##5082221.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)
#877811
Deuteranopia (green-blind)
#81742B
Tritanopia (blue-blind)
#507D6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508222;
/* rgb */ color: rgb(80, 130, 34);
/* oklch */ color: oklch(55.1% 0.137 133.2);
Tailwind
colors: {
  custom: {
    50: '#85a664',
    500: '#508222',
    950: '#000000',
  },
}
SCSS
$custom: #508222;
$custom-light: #85a664;
$custom-dark: #000000;
JSON
{
  "hex": "#508222",
  "rgb": {
    "r": 80,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 91.25,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55117,
    "c": 0.13663,
    "h": 133.2
  },
  "luminance": 0.17786
}

Semantic roles & 50–950 ramp

primary
#508222
secondary
#824CB4
accent
#46E297
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #508222

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

Preview Lab → · Contrast checker → · Palette generator →

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