#507D1F#507D1F

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

Color values

HEX#507D1F
RGBrgb(80, 125, 31)
HSLhsl(89, 60%, 31%)
HSVhsv(89, 75%, 49%)
CMYKcmyk(36%, 0%, 75.2%, 51%)
CIE-LABlab(47.59, -31.24, 43.70)
CIE-LCHlch(47.59, 53.71, 125.56°)
OKLaboklab(53.76% -0.0882 0.0981)
OKLCHoklch(53.76% 0.132 132)
XYZxyz(10.8891, 16.4712, 3.9016)
Luminance0.1647 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D1F #4C1F7D
analogous
#7D7B1F #507D1F #217D1F
triadic
#507D1F #1F507D #7D1F50
tetradic
#507D1F #1F7D7B #4C1F7D #7D1F21
square
#507D1F #1F7D7B #4C1F7D #7D1F21
split-complementary
#507D1F #1F217D #7B1F7D
monochromatic
#111B07 #314C13 #507D1F #6FAE2B #8ED145

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##507D1F#FFFFFF#000000##FFFFFF
##507D1F1.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)
#83730E
Deuteranopia (green-blind)
#7C7028
Tritanopia (blue-blind)
#51786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d1f;
/* rgb */ color: rgb(80, 125, 31);
/* oklch */ color: oklch(53.8% 0.132 132.0);
Tailwind
colors: {
  custom: {
    50: '#85a361',
    500: '#507d1f',
    950: '#000000',
  },
}
SCSS
$custom: #507d1f;
$custom-light: #85a361;
$custom-dark: #000000;
JSON
{
  "hex": "#507d1f",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 88.723,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53764,
    "c": 0.13189,
    "h": 132
  },
  "luminance": 0.16472
}

Semantic roles & 50–950 ramp

primary
#507D1F
secondary
#7A48B0
accent
#44E391
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #507D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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