#507F20#507F20

#507F20 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.3% C 0.134 H 132.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#507F20
RGBrgb(80, 127, 32)
HSLhsl(90, 60%, 31%)
HSVhsv(90, 75%, 50%)
CMYKcmyk(37%, 0%, 74.8%, 50.2%)
CIE-LABlab(48.24, -32.09, 43.97)
CIE-LCHlch(48.24, 54.43, 126.13°)
OKLaboklab(54.3% -0.0904 0.0988)
OKLCHoklch(54.3% 0.134 132.5)
XYZxyz(11.1582, 16.9880, 4.0573)
Luminance0.1699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F20 #4F207F
analogous
#7F7E20 #507F20 #217F20
triadic
#507F20 #20507F #7F2050
tetradic
#507F20 #207F7E #4F207F #7F2021
square
#507F20 #207F7E #4F207F #7F2021
split-complementary
#507F20 #20217F #7E207F
monochromatic
#121D07 #314E14 #507F20 #6FB02C #8DD148

Accessibility & contrast

On white

4.78
#507F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#507F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507F20
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507F20#FFFFFF#000000##FFFFFF
##507F201.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750F
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#517A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #507f20;
/* rgb */ color: rgb(80, 127, 32);
/* oklch */ color: oklch(54.3% 0.134 132.5);
Tailwind
colors: {
  custom: {
    50: '#85a462',
    500: '#507f20',
    950: '#000000',
  },
}
SCSS
$custom: #507f20;
$custom-light: #85a462;
$custom-dark: #000000;
JSON
{
  "hex": "#507f20",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 89.684,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54304,
    "c": 0.13392,
    "h": 132.5
  },
  "luminance": 0.16989
}

Semantic roles & 50–950 ramp

primary
#507F20
secondary
#7D49B2
accent
#45E393
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #507F20

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

Preview Lab → · Contrast checker → · Palette generator →

#507F20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva