#507A21#507A21

#507A21 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.0% C 0.126 H 131.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#507A21
RGBrgb(80, 122, 33)
HSLhsl(88, 57%, 30%)
HSVhsv(88, 73%, 48%)
CMYKcmyk(34.4%, 0%, 73%, 52.2%)
CIE-LABlab(46.62, -29.70, 41.93)
CIE-LCHlch(46.62, 51.38, 125.31°)
OKLaboklab(52.98% -0.0838 0.0947)
OKLCHoklch(52.98% 0.126 131.5)
XYZxyz(10.5422, 15.7340, 3.9201)
Luminance0.1573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507A21 #4B217A
analogous
#7A7721 #507A21 #237A21
triadic
#507A21 #21507A #7A2150
tetradic
#507A21 #217A77 #4B217A #7A2123
square
#507A21 #217A77 #4B217A #7A2123
split-complementary
#507A21 #21237A #77217A
monochromatic
#111A07 #304A14 #507A21 #70AA2E #8ECD48

Accessibility & contrast

On white

5.06
#507A21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#507A21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507A21
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507A21#FFFFFF#000000##FFFFFF
##507A211.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7113
Deuteranopia (green-blind)
#7A6D29
Tritanopia (blue-blind)
#517568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #507a21;
/* rgb */ color: rgb(80, 122, 33);
/* oklch */ color: oklch(53.0% 0.126 131.5);
Tailwind
colors: {
  custom: {
    50: '#85a062',
    500: '#507a21',
    950: '#000000',
  },
}
SCSS
$custom: #507a21;
$custom-light: #85a062;
$custom-dark: #000000;
JSON
{
  "hex": "#507a21",
  "rgb": {
    "r": 80,
    "g": 122,
    "b": 33
  },
  "hsl": {
    "h": 88.315,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52983,
    "c": 0.12646,
    "h": 131.5
  },
  "luminance": 0.15734
}

Semantic roles & 50–950 ramp

primary
#507A21
secondary
#794AAD
accent
#47E190
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #507A21

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

Preview Lab → · Contrast checker → · Palette generator →

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