#507D18#507D18

#507D18 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.7% C 0.136 H 131.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#507D18
RGBrgb(80, 125, 24)
HSLhsl(87, 68%, 29%)
HSVhsv(87, 81%, 49%)
CMYKcmyk(36%, 0%, 80.8%, 51%)
CIE-LABlab(47.54, -31.67, 46.16)
CIE-LCHlch(47.54, 55.98, 124.45°)
OKLaboklab(53.72% -0.0899 0.1021)
OKLCHoklch(53.72% 0.136 131.4)
XYZxyz(10.8067, 16.4382, 3.4675)
Luminance0.1644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D18 #45187D
analogous
#7D7818 #507D18 #1D7D18
triadic
#507D18 #18507D #7D1850
tetradic
#507D18 #187D78 #45187D #7D181D
square
#507D18 #187D78 #45187D #7D181D
split-complementary
#507D18 #181D7D #78187D
monochromatic
#101A05 #2F4A0E #507D18 #71B022 #91D937

Accessibility & contrast

On white

4.90
#507D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#507D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507D18
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507D18#FFFFFF#000000##FFFFFF
##507D181.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7D7023
Tritanopia (blue-blind)
#52776A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d18;
/* rgb */ color: rgb(80, 125, 24);
/* oklch */ color: oklch(53.7% 0.136 131.4);
Tailwind
colors: {
  custom: {
    50: '#85a35e',
    500: '#507d18',
    950: '#000000',
  },
}
SCSS
$custom: #507d18;
$custom-light: #85a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#507d18",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 86.733,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53716,
    "c": 0.13603,
    "h": 131.4
  },
  "luminance": 0.16439
}

Semantic roles & 50–950 ramp

primary
#507D18
secondary
#723FB2
accent
#3DEB8A
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507D18

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

Preview Lab → · Contrast checker → · Palette generator →

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