#507D22#507D22

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

Color values

HEX#507D22
RGBrgb(80, 125, 34)
HSLhsl(90, 57%, 31%)
HSVhsv(90, 73%, 49%)
CMYKcmyk(36%, 0%, 72.8%, 51%)
CIE-LABlab(47.61, -31.02, 42.53)
CIE-LCHlch(47.61, 52.64, 126.11°)
OKLaboklab(53.79% -0.0873 0.0961)
OKLCHoklch(53.79% 0.13 132.3)
XYZxyz(10.9305, 16.4878, 4.1196)
Luminance0.1649 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D22 #4F227D
analogous
#7D7C22 #507D22 #227D22
triadic
#507D22 #22507D #7D2250
tetradic
#507D22 #227D7C #4F227D #7D2222
square
#507D22 #227D7C #4F227D #7D2222
split-complementary
#507D22 #22227D #7C227D
monochromatic
#121D08 #314D15 #507D22 #6FAD2F #8DCE4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##507D22#FFFFFF#000000##FFFFFF
##507D221.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)
#827313
Deuteranopia (green-blind)
#7C702A
Tritanopia (blue-blind)
#51786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d22;
/* rgb */ color: rgb(80, 125, 34);
/* oklch */ color: oklch(53.8% 0.130 132.3);
Tailwind
colors: {
  custom: {
    50: '#85a363',
    500: '#507d22',
    950: '#000000',
  },
}
SCSS
$custom: #507d22;
$custom-light: #85a363;
$custom-dark: #000000;
JSON
{
  "hex": "#507d22",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 89.67,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53789,
    "c": 0.12987,
    "h": 132.3
  },
  "luminance": 0.16488
}

Semantic roles & 50–950 ramp

primary
#507D22
secondary
#7D4BB0
accent
#47E093
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #507D22

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

Preview Lab → · Contrast checker → · Palette generator →

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