#508120#508120

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

Color values

HEX#508120
RGBrgb(80, 129, 32)
HSLhsl(90, 60%, 32%)
HSVhsv(90, 75%, 51%)
CMYKcmyk(38%, 0%, 75.2%, 49.4%)
CIE-LABlab(48.90, -33.01, 44.61)
CIE-LCHlch(48.90, 55.50, 126.49°)
OKLaboklab(54.84% -0.0929 0.1002)
OKLCHoklch(54.84% 0.137 132.8)
XYZxyz(11.4191, 17.5098, 4.1443)
Luminance0.1751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508120 #512081
analogous
#818120 #508120 #208121
triadic
#508120 #205081 #812050
tetradic
#508120 #208181 #512081 #812120
square
#508120 #208181 #512081 #812120
split-complementary
#508120 #212081 #812081
monochromatic
#131F08 #325014 #508120 #6EB22C #8DD249

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508120#FFFFFF#000000##FFFFFF
##5081201.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)
#86770E
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#517C6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #508120;
/* rgb */ color: rgb(80, 129, 32);
/* oklch */ color: oklch(54.8% 0.137 132.8);
Tailwind
colors: {
  custom: {
    50: '#85a663',
    500: '#508120',
    950: '#000000',
  },
}
SCSS
$custom: #508120;
$custom-light: #85a663;
$custom-dark: #000000;
JSON
{
  "hex": "#508120",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 32
  },
  "hsl": {
    "h": 90.309,
    "s": 60.248,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54835,
    "c": 0.1366,
    "h": 132.8
  },
  "luminance": 0.1751
}

Semantic roles & 50–950 ramp

primary
#508120
secondary
#7F49B4
accent
#44E395
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #508120

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

Preview Lab → · Contrast checker → · Palette generator →

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