#507F1B#507F1B

#507F1B is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.3% C 0.137 H 132.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#507F1B
RGBrgb(80, 127, 27)
HSLhsl(88, 65%, 30%)
HSVhsv(88, 79%, 50%)
CMYKcmyk(37%, 0%, 78.7%, 50.2%)
CIE-LABlab(48.21, -32.42, 45.78)
CIE-LCHlch(48.21, 56.09, 125.30°)
OKLaboklab(54.27% -0.0917 0.1018)
OKLCHoklch(54.27% 0.137 132)
XYZxyz(11.0953, 16.9629, 3.7263)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F1B #4A1B7F
analogous
#7F7C1B #507F1B #1E7F1B
triadic
#507F1B #1B507F #7F1B50
tetradic
#507F1B #1B7F7C #4A1B7F #7F1B1E
square
#507F1B #1B7F7C #4A1B7F #7F1B1E
split-complementary
#507F1B #1B1E7F #7C1B7F
monochromatic
#101A06 #304D10 #507F1B #70B126 #8FD63E

Accessibility & contrast

On white

4.78
#507F1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#507F1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507F1B
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507F1B#FFFFFF#000000##FFFFFF
##507F1B1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857503
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#51796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507f1b;
/* rgb */ color: rgb(80, 127, 27);
/* oklch */ color: oklch(54.3% 0.137 132.0);
Tailwind
colors: {
  custom: {
    50: '#85a460',
    500: '#507f1b',
    950: '#000000',
  },
}
SCSS
$custom: #507f1b;
$custom-light: #85a460;
$custom-dark: #000000;
JSON
{
  "hex": "#507f1b",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 88.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54268,
    "c": 0.13699,
    "h": 132
  },
  "luminance": 0.16963
}

Semantic roles & 50–950 ramp

primary
#507F1B
secondary
#7843B3
accent
#40E88F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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