#507B18#507B18

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

Color values

HEX#507B18
RGBrgb(80, 123, 24)
HSLhsl(86, 67%, 29%)
HSVhsv(86, 80%, 48%)
CMYKcmyk(35%, 0%, 80.5%, 51.8%)
CIE-LABlab(46.89, -30.75, 45.55)
CIE-LCHlch(46.89, 54.96, 124.02°)
OKLaboklab(53.18% -0.0874 0.1008)
OKLCHoklch(53.18% 0.133 130.9)
XYZxyz(10.5560, 15.9370, 3.3839)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507B18 #43187B
analogous
#7B7518 #507B18 #1E7B18
triadic
#507B18 #18507B #7B1850
tetradic
#507B18 #187B75 #43187B #7B181E
square
#507B18 #187B75 #43187B #7B181E
split-complementary
#507B18 #181E7B #75187B
monochromatic
#111A05 #2F480E #507B18 #71AE22 #91D836

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##507B18#FFFFFF#000000##FFFFFF
##507B181.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)
#7B6E23
Tritanopia (blue-blind)
#527569
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #507b18;
/* rgb */ color: rgb(80, 123, 24);
/* oklch */ color: oklch(53.2% 0.133 130.9);
Tailwind
colors: {
  custom: {
    50: '#85a15e',
    500: '#507b18',
    950: '#000000',
  },
}
SCSS
$custom: #507b18;
$custom-light: #85a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#507b18",
  "rgb": {
    "r": 80,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 86.061,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53184,
    "c": 0.13342,
    "h": 130.9
  },
  "luminance": 0.15937
}

Semantic roles & 50–950 ramp

primary
#507B18
secondary
#703FB0
accent
#3EEA89
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #507B18

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

Preview Lab → · Contrast checker → · Palette generator →

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