#507F17#507F17

#507F17 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.2% C 0.139 H 131.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#507F17
RGBrgb(80, 127, 23)
HSLhsl(87, 69%, 29%)
HSVhsv(87, 82%, 50%)
CMYKcmyk(37%, 0%, 81.9%, 50.2%)
CIE-LABlab(48.19, -32.64, 47.09)
CIE-LCHlch(48.19, 57.30, 124.73°)
OKLaboklab(54.24% -0.0926 0.1039)
OKLCHoklch(54.24% 0.139 131.7)
XYZxyz(11.0522, 16.9456, 3.4989)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F17 #46177F
analogous
#7F7A17 #507F17 #1C7F17
triadic
#507F17 #17507F #7F1750
tetradic
#507F17 #177F7A #46177F #7F171C
square
#507F17 #177F7A #46177F #7F171C
split-complementary
#507F17 #171C7F #7A177F
monochromatic
#101A05 #2F4B0E #507F17 #71B320 #90DB36

Accessibility & contrast

On white

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

On black

4.39
#507F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##507F17#FFFFFF#000000##FFFFFF
##507F171.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#51796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507f17;
/* rgb */ color: rgb(80, 127, 23);
/* oklch */ color: oklch(54.2% 0.139 131.7);
Tailwind
colors: {
  custom: {
    50: '#86a45e',
    500: '#507f17',
    950: '#000000',
  },
}
SCSS
$custom: #507f17;
$custom-light: #86a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#507f17",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 87.115,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54243,
    "c": 0.13914,
    "h": 131.7
  },
  "luminance": 0.16946
}

Semantic roles & 50–950 ramp

primary
#507F17
secondary
#733EB4
accent
#3CEC8B
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #507F17

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

Preview Lab → · Contrast checker → · Palette generator →

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