#507D1B#507D1B

#507D1B is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.7% C 0.134 H 131.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#507D1B
RGBrgb(80, 125, 27)
HSLhsl(88, 64%, 30%)
HSVhsv(88, 78%, 49%)
CMYKcmyk(36%, 0%, 78.4%, 51%)
CIE-LABlab(47.56, -31.50, 45.15)
CIE-LCHlch(47.56, 55.06, 124.90°)
OKLaboklab(53.74% -0.0892 0.1005)
OKLCHoklch(53.74% 0.134 131.6)
XYZxyz(10.8396, 16.4514, 3.6410)
Luminance0.1645 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D1B #481B7D
analogous
#7D791B #507D1B #1F7D1B
triadic
#507D1B #1B507D #7D1B50
tetradic
#507D1B #1B7D79 #481B7D #7D1B1F
square
#507D1B #1B7D79 #481B7D #7D1B1F
split-complementary
#507D1B #1B1F7D #791B7D
monochromatic
#101905 #304B10 #507D1B #70AF26 #8FD53D

Accessibility & contrast

On white

4.89
#507D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #507D1B
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507D1B#FFFFFF#000000##FFFFFF
##507D1B1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837304
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#51786A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d1b;
/* rgb */ color: rgb(80, 125, 27);
/* oklch */ color: oklch(53.7% 0.134 131.6);
Tailwind
colors: {
  custom: {
    50: '#85a360',
    500: '#507d1b',
    950: '#000000',
  },
}
SCSS
$custom: #507d1b;
$custom-light: #85a360;
$custom-dark: #000000;
JSON
{
  "hex": "#507d1b",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 87.551,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53735,
    "c": 0.13436,
    "h": 131.6
  },
  "luminance": 0.16452
}

Semantic roles & 50–950 ramp

primary
#507D1B
secondary
#7543B1
accent
#40E78D
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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