#507F1A#507F1A

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

Color values

HEX#507F1A
RGBrgb(80, 127, 26)
HSLhsl(88, 66%, 30%)
HSVhsv(88, 80%, 50%)
CMYKcmyk(37%, 0%, 79.5%, 50.2%)
CIE-LABlab(48.21, -32.48, 46.12)
CIE-LCHlch(48.21, 56.41, 125.15°)
OKLaboklab(54.26% -0.0919 0.1024)
OKLCHoklch(54.26% 0.138 131.9)
XYZxyz(11.0840, 16.9583, 3.6664)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F1A #491A7F
analogous
#7F7C1A #507F1A #1D7F1A
triadic
#507F1A #1A507F #7F1A50
tetradic
#507F1A #1A7F7C #491A7F #7F1A1D
square
#507F1A #1A7F7C #491A7F #7F1A1D
split-complementary
#507F1A #1A1D7F #7C1A7F
monochromatic
#101905 #304C10 #507F1A #70B224 #8FD73C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##507F1A#FFFFFF#000000##FFFFFF
##507F1A1.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)
#857501
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#51796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507f1a;
/* rgb */ color: rgb(80, 127, 26);
/* oklch */ color: oklch(54.3% 0.138 131.9);
Tailwind
colors: {
  custom: {
    50: '#86a45f',
    500: '#507f1a',
    950: '#000000',
  },
}
SCSS
$custom: #507f1a;
$custom-light: #86a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#507f1a",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 87.921,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.54261,
    "c": 0.13756,
    "h": 131.9
  },
  "luminance": 0.16959
}

Semantic roles & 50–950 ramp

primary
#507F1A
secondary
#7642B3
accent
#3FE98E
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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