#507B17#507B17

#507B17 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.2% C 0.134 H 130.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#507B17
RGBrgb(80, 123, 23)
HSLhsl(86, 68%, 29%)
HSVhsv(86, 81%, 48%)
CMYKcmyk(35%, 0%, 81.3%, 51.8%)
CIE-LABlab(46.89, -30.80, 45.88)
CIE-LCHlch(46.89, 55.26, 123.88°)
OKLaboklab(53.18% -0.0876 0.1014)
OKLCHoklch(53.18% 0.134 130.8)
XYZxyz(10.5458, 15.9329, 3.3302)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507B17 #42177B
analogous
#7B7417 #507B17 #1E7B17
triadic
#507B17 #17507B #7B1750
tetradic
#507B17 #177B74 #42177B #7B171E
square
#507B17 #177B74 #42177B #7B171E
split-complementary
#507B17 #171E7B #74177B
monochromatic
#111A05 #2E470D #507B17 #72AF21 #92D933

Accessibility & contrast

On white

5.02
#507B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#507B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507B17
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507B17#FFFFFF#000000##FFFFFF
##507B171.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#527569
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #507b17;
/* rgb */ color: rgb(80, 123, 23);
/* oklch */ color: oklch(53.2% 0.134 130.8);
Tailwind
colors: {
  custom: {
    50: '#85a15d',
    500: '#507b17',
    950: '#000000',
  },
}
SCSS
$custom: #507b17;
$custom-light: #85a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#507b17",
  "rgb": {
    "r": 80,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 85.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53178,
    "c": 0.13396,
    "h": 130.8
  },
  "luminance": 0.15933
}

Semantic roles & 50–950 ramp

primary
#507B17
secondary
#6F3EB0
accent
#3CEB88
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #507B17

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

Preview Lab → · Contrast checker → · Palette generator →

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