#507D2E#507D2E

#507D2E is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.9% C 0.120 H 133.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#507D2E
RGBrgb(80, 125, 46)
HSLhsl(94, 46%, 34%)
HSVhsv(94, 63%, 49%)
CMYKcmyk(36%, 0%, 63.2%, 51%)
CIE-LABlab(47.71, -29.97, 37.31)
CIE-LCHlch(47.71, 47.86, 128.78°)
OKLaboklab(53.91% -0.0835 0.0867)
OKLCHoklch(53.91% 0.12 133.9)
XYZxyz(11.1348, 16.5695, 5.1958)
Luminance0.1657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D2E #5B2E7D
analogous
#777D2E #507D2E #2E7D33
triadic
#507D2E #2E507D #7D2E50
tetradic
#507D2E #2E777D #5B2E7D #7D332E
square
#507D2E #2E777D #5B2E7D #7D332E
split-complementary
#507D2E #332E7D #7D2E77
monochromatic
#17240D #33501E #507D2E #6DAA3E #8CC561

Accessibility & contrast

On white

4.87
#507D2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#507D2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507D2E
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507D2E#FFFFFF#000000##FFFFFF
##507D2E1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827425
Deuteranopia (green-blind)
#7B7034
Tritanopia (blue-blind)
#50786C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d2e;
/* rgb */ color: rgb(80, 125, 46);
/* oklch */ color: oklch(53.9% 0.120 133.9);
Tailwind
colors: {
  custom: {
    50: '#84a36a',
    500: '#507d2e',
    950: '#000000',
  },
}
SCSS
$custom: #507d2e;
$custom-light: #84a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#507d2e",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 94.177,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53908,
    "c": 0.12034,
    "h": 133.9
  },
  "luminance": 0.1657
}

Semantic roles & 50–950 ramp

primary
#507D2E
secondary
#895BAB
accent
#52D69D
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #507D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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