#507D21#507D21

#507D21 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.8% C 0.131 H 132.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#507D21
RGBrgb(80, 125, 33)
HSLhsl(89, 58%, 31%)
HSVhsv(89, 74%, 49%)
CMYKcmyk(36%, 0%, 73.6%, 51%)
CIE-LABlab(47.60, -31.10, 42.92)
CIE-LCHlch(47.60, 53.01, 125.92°)
OKLaboklab(53.78% -0.0876 0.0968)
OKLCHoklch(53.78% 0.131 132.2)
XYZxyz(10.9163, 16.4821, 4.0447)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D21 #4E217D
analogous
#7D7C21 #507D21 #227D21
triadic
#507D21 #21507D #7D2150
tetradic
#507D21 #217D7C #4E217D #7D2122
square
#507D21 #217D7C #4E217D #7D2122
split-complementary
#507D21 #21227D #7C217D
monochromatic
#121C07 #314D14 #507D21 #6FAD2E #8ECF49

Accessibility & contrast

On white

4.89
#507D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#507D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507D21
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507D21#FFFFFF#000000##FFFFFF
##507D211.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827311
Deuteranopia (green-blind)
#7C7029
Tritanopia (blue-blind)
#51786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d21;
/* rgb */ color: rgb(80, 125, 33);
/* oklch */ color: oklch(53.8% 0.131 132.2);
Tailwind
colors: {
  custom: {
    50: '#85a363',
    500: '#507d21',
    950: '#000000',
  },
}
SCSS
$custom: #507d21;
$custom-light: #85a363;
$custom-dark: #000000;
JSON
{
  "hex": "#507d21",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 89.348,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5378,
    "c": 0.13055,
    "h": 132.2
  },
  "luminance": 0.16483
}

Semantic roles & 50–950 ramp

primary
#507D21
secondary
#7C4AB0
accent
#46E192
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #507D21

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

Preview Lab → · Contrast checker → · Palette generator →

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