#508122#508122

#508122 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.9% C 0.135 H 133.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#508122
RGBrgb(80, 129, 34)
HSLhsl(91, 58%, 32%)
HSVhsv(91, 74%, 51%)
CMYKcmyk(38%, 0%, 73.6%, 49.4%)
CIE-LABlab(48.91, -32.86, 43.85)
CIE-LCHlch(48.91, 54.80, 126.85°)
OKLaboklab(54.85% -0.0923 0.0989)
OKLCHoklch(54.85% 0.135 133)
XYZxyz(11.4471, 17.5210, 4.2918)
Luminance0.1752 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508122 #532281
analogous
#808122 #508122 #228123
triadic
#508122 #225081 #812250
tetradic
#508122 #228081 #532281 #812322
square
#508122 #228081 #532281 #812322
split-complementary
#508122 #232281 #812280
monochromatic
#142008 #325115 #508122 #6EB12F #8DD04D

Accessibility & contrast

On white

4.66
#508122 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#508122 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508122
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508122#FFFFFF#000000##FFFFFF
##5081221.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867712
Deuteranopia (green-blind)
#80732B
Tritanopia (blue-blind)
#507C6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #508122;
/* rgb */ color: rgb(80, 129, 34);
/* oklch */ color: oklch(54.9% 0.135 133.0);
Tailwind
colors: {
  custom: {
    50: '#85a664',
    500: '#508122',
    950: '#000000',
  },
}
SCSS
$custom: #508122;
$custom-light: #85a664;
$custom-dark: #000000;
JSON
{
  "hex": "#508122",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 90.947,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54851,
    "c": 0.13528,
    "h": 133
  },
  "luminance": 0.17521
}

Semantic roles & 50–950 ramp

primary
#508122
secondary
#814BB3
accent
#46E196
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #508122

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

Preview Lab → · Contrast checker → · Palette generator →

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