#507E17#507E17

#507E17 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.0% C 0.138 H 131.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#507E17
RGBrgb(80, 126, 23)
HSLhsl(87, 69%, 29%)
HSVhsv(87, 82%, 49%)
CMYKcmyk(36.5%, 0%, 81.7%, 50.6%)
CIE-LABlab(47.87, -32.18, 46.79)
CIE-LCHlch(47.87, 56.79, 124.52°)
OKLaboklab(53.98% -0.0913 0.1033)
OKLCHoklch(53.98% 0.138 131.5)
XYZxyz(10.9237, 16.6886, 3.4561)
Luminance0.1669 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507E17 #45177E
analogous
#7E7917 #507E17 #1D7E17
triadic
#507E17 #17507E #7E1750
tetradic
#507E17 #177E79 #45177E #7E171D
square
#507E17 #177E79 #45177E #7E171D
split-complementary
#507E17 #171D7E #79177E
monochromatic
#101A05 #2F4A0E #507E17 #71B220 #91DA35

Accessibility & contrast

On white

4.84
#507E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#507E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507E17
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507E17#FFFFFF#000000##FFFFFF
##507E171.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7E7022
Tritanopia (blue-blind)
#51786B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507e17;
/* rgb */ color: rgb(80, 126, 23);
/* oklch */ color: oklch(54.0% 0.138 131.5);
Tailwind
colors: {
  custom: {
    50: '#86a35e',
    500: '#507e17',
    950: '#000000',
  },
}
SCSS
$custom: #507e17;
$custom-light: #86a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#507e17",
  "rgb": {
    "r": 80,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 86.796,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53977,
    "c": 0.13785,
    "h": 131.5
  },
  "luminance": 0.16689
}

Semantic roles & 50–950 ramp

primary
#507E17
secondary
#723EB3
accent
#3CEC8A
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507E17

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

Preview Lab → · Contrast checker → · Palette generator →

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