#507D1A#507D1A

#507D1A is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.7% C 0.135 H 131.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#507D1A
RGBrgb(80, 125, 26)
HSLhsl(87, 66%, 30%)
HSVhsv(87, 79%, 49%)
CMYKcmyk(36%, 0%, 79.2%, 51%)
CIE-LABlab(47.56, -31.56, 45.50)
CIE-LCHlch(47.56, 55.37, 124.75°)
OKLaboklab(53.73% -0.0894 0.1011)
OKLCHoklch(53.73% 0.135 131.5)
XYZxyz(10.8282, 16.4469, 3.5811)
Luminance0.1645 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D1A #471A7D
analogous
#7D791A #507D1A #1E7D1A
triadic
#507D1A #1A507D #7D1A50
tetradic
#507D1A #1A7D79 #471A7D #7D1A1E
square
#507D1A #1A7D79 #471A7D #7D1A1E
split-complementary
#507D1A #1A1E7D #791A7D
monochromatic
#101905 #304A0F #507D1A #70B025 #90D63B

Accessibility & contrast

On white

4.90
#507D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #507D1A
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507D1A#FFFFFF#000000##FFFFFF
##507D1A1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837302
Deuteranopia (green-blind)
#7D7024
Tritanopia (blue-blind)
#51776A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d1a;
/* rgb */ color: rgb(80, 125, 26);
/* oklch */ color: oklch(53.7% 0.135 131.5);
Tailwind
colors: {
  custom: {
    50: '#85a35f',
    500: '#507d1a',
    950: '#000000',
  },
}
SCSS
$custom: #507d1a;
$custom-light: #85a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#507d1a",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 87.273,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53729,
    "c": 0.13494,
    "h": 131.5
  },
  "luminance": 0.16447
}

Semantic roles & 50–950 ramp

primary
#507D1A
secondary
#7442B1
accent
#3FE98C
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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