#507E18#507E18

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

Color values

HEX#507E18
RGBrgb(80, 126, 24)
HSLhsl(87, 68%, 29%)
HSVhsv(87, 81%, 49%)
CMYKcmyk(36.5%, 0%, 81%, 50.6%)
CIE-LABlab(47.87, -32.13, 46.47)
CIE-LCHlch(47.87, 56.50, 124.66°)
OKLaboklab(53.98% -0.0911 0.1028)
OKLCHoklch(53.98% 0.137 131.6)
XYZxyz(10.9339, 16.6927, 3.5099)
Luminance0.1669 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507E18 #46187E
analogous
#7E7918 #507E18 #1D7E18
triadic
#507E18 #18507E #7E1850
tetradic
#507E18 #187E79 #46187E #7E181D
square
#507E18 #187E79 #46187E #7E181D
split-complementary
#507E18 #181D7E #79187E
monochromatic
#101A05 #2F4B0E #507E18 #71B122 #90D937

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##507E18#FFFFFF#000000##FFFFFF
##507E181.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)
#7E7023
Tritanopia (blue-blind)
#51786B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507e18;
/* rgb */ color: rgb(80, 126, 24);
/* oklch */ color: oklch(54.0% 0.137 131.6);
Tailwind
colors: {
  custom: {
    50: '#86a35e',
    500: '#507e18',
    950: '#000000',
  },
}
SCSS
$custom: #507e18;
$custom-light: #86a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#507e18",
  "rgb": {
    "r": 80,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 87.059,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53982,
    "c": 0.13733,
    "h": 131.6
  },
  "luminance": 0.16693
}

Semantic roles & 50–950 ramp

primary
#507E18
secondary
#733FB2
accent
#3DEB8B
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507E18

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

Preview Lab → · Contrast checker → · Palette generator →

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