#507C1F#507C1F

#507C1F is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.5% C 0.131 H 131.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#507C1F
RGBrgb(80, 124, 31)
HSLhsl(88, 60%, 30%)
HSVhsv(88, 75%, 49%)
CMYKcmyk(35.5%, 0%, 75%, 51.4%)
CIE-LABlab(47.26, -30.78, 43.37)
CIE-LCHlch(47.26, 53.18, 125.36°)
OKLaboklab(53.5% -0.0869 0.0974)
OKLCHoklch(53.5% 0.131 131.7)
XYZxyz(10.7631, 16.2193, 3.8596)
Luminance0.1622 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507C1F #4B1F7C
analogous
#7C791F #507C1F #217C1F
triadic
#507C1F #1F507C #7C1F50
tetradic
#507C1F #1F7C79 #4B1F7C #7C1F21
square
#507C1F #1F7C79 #4B1F7C #7C1F21
split-complementary
#507C1F #1F217C #791F7C
monochromatic
#111A07 #304B13 #507C1F #70AD2B #8ED045

Accessibility & contrast

On white

4.95
#507C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#507C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507C1F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507C1F#FFFFFF#000000##FFFFFF
##507C1F1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82720E
Deuteranopia (green-blind)
#7C6F28
Tritanopia (blue-blind)
#51776A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #507c1f;
/* rgb */ color: rgb(80, 124, 31);
/* oklch */ color: oklch(53.5% 0.131 131.7);
Tailwind
colors: {
  custom: {
    50: '#85a261',
    500: '#507c1f',
    950: '#000000',
  },
}
SCSS
$custom: #507c1f;
$custom-light: #85a261;
$custom-dark: #000000;
JSON
{
  "hex": "#507c1f",
  "rgb": {
    "r": 80,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 88.387,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53499,
    "c": 0.13054,
    "h": 131.7
  },
  "luminance": 0.1622
}

Semantic roles & 50–950 ramp

primary
#507C1F
secondary
#7948AF
accent
#45E390
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #507C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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