#507E1F#507E1F

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

Color values

HEX#507E1F
RGBrgb(80, 126, 31)
HSLhsl(89, 61%, 31%)
HSVhsv(89, 75%, 49%)
CMYKcmyk(36.5%, 0%, 75.4%, 50.6%)
CIE-LABlab(47.91, -31.70, 44.02)
CIE-LCHlch(47.91, 54.25, 125.76°)
OKLaboklab(54.03% -0.0894 0.0988)
OKLCHoklch(54.03% 0.133 132.2)
XYZxyz(11.0163, 16.7257, 3.9440)
Luminance0.1673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507E1F #4D1F7E
analogous
#7E7C1F #507E1F #207E1F
triadic
#507E1F #1F507E #7E1F50
tetradic
#507E1F #1F7E7C #4D1F7E #7E1F20
square
#507E1F #1F7E7C #4D1F7E #7E1F20
split-complementary
#507E1F #1F207E #7C1F7E
monochromatic
#121C07 #314D13 #507E1F #6FAF2B #8ED146

Accessibility & contrast

On white

4.83
#507E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#507E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507E1F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507E1F#FFFFFF#000000##FFFFFF
##507E1F1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740D
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#51796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507e1f;
/* rgb */ color: rgb(80, 126, 31);
/* oklch */ color: oklch(54.0% 0.133 132.2);
Tailwind
colors: {
  custom: {
    50: '#85a362',
    500: '#507e1f',
    950: '#000000',
  },
}
SCSS
$custom: #507e1f;
$custom-light: #85a362;
$custom-dark: #000000;
JSON
{
  "hex": "#507e1f",
  "rgb": {
    "r": 80,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 89.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5403,
    "c": 0.13323,
    "h": 132.2
  },
  "luminance": 0.16726
}

Semantic roles & 50–950 ramp

primary
#507E1F
secondary
#7B48B1
accent
#44E491
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #507E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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