#507F18#507F18

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

Color values

HEX#507F18
RGBrgb(80, 127, 24)
HSLhsl(87, 68%, 30%)
HSVhsv(87, 81%, 50%)
CMYKcmyk(37%, 0%, 81.1%, 50.2%)
CIE-LABlab(48.20, -32.59, 46.77)
CIE-LCHlch(48.20, 57.01, 124.86°)
OKLaboklab(54.25% -0.0923 0.1034)
OKLCHoklch(54.25% 0.139 131.8)
XYZxyz(11.0624, 16.9497, 3.5527)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F18 #47187F
analogous
#7F7B18 #507F18 #1C7F18
triadic
#507F18 #18507F #7F1850
tetradic
#507F18 #187F7B #47187F #7F181C
square
#507F18 #187F7B #47187F #7F181C
split-complementary
#507F18 #181C7F #7B187F
monochromatic
#101A05 #304C0E #507F18 #70B222 #90D938

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##507F18#FFFFFF#000000##FFFFFF
##507F181.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: #507f18;
/* rgb */ color: rgb(80, 127, 24);
/* oklch */ color: oklch(54.2% 0.139 131.8);
Tailwind
colors: {
  custom: {
    50: '#86a45e',
    500: '#507f18',
    950: '#000000',
  },
}
SCSS
$custom: #507f18;
$custom-light: #86a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#507f18",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 87.379,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54249,
    "c": 0.13863,
    "h": 131.8
  },
  "luminance": 0.1695
}

Semantic roles & 50–950 ramp

primary
#507F18
secondary
#743FB3
accent
#3DEB8C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #507F18

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

Preview Lab → · Contrast checker → · Palette generator →

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