#507E2F#507E2F

#507E2F is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.2% C 0.121 H 134.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#507E2F
RGBrgb(80, 126, 47)
HSLhsl(95, 46%, 34%)
HSVhsv(95, 63%, 49%)
CMYKcmyk(36.5%, 0%, 62.7%, 50.6%)
CIE-LABlab(48.05, -30.34, 37.20)
CIE-LCHlch(48.05, 48.01, 129.20°)
OKLaboklab(54.18% -0.0844 0.0866)
OKLCHoklch(54.18% 0.121 134.3)
XYZxyz(11.2820, 16.8319, 5.3432)
Luminance0.1683 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507E2F #5D2F7E
analogous
#787E2F #507E2F #2F7E36
triadic
#507E2F #2F507E #7E2F50
tetradic
#507E2F #2F787E #5D2F7E #7E362F
square
#507E2F #2F787E #5D2F7E #7E362F
split-complementary
#507E2F #362F7E #7E2F78
monochromatic
#17250E #34511E #507E2F #6CAB40 #8CC563

Accessibility & contrast

On white

4.81
#507E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#507E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507E2F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507E2F#FFFFFF#000000##FFFFFF
##507E2F1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837426
Deuteranopia (green-blind)
#7C7135
Tritanopia (blue-blind)
#50796D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #507e2f;
/* rgb */ color: rgb(80, 126, 47);
/* oklch */ color: oklch(54.2% 0.121 134.3);
Tailwind
colors: {
  custom: {
    50: '#84a36b',
    500: '#507e2f',
    950: '#000000',
  },
}
SCSS
$custom: #507e2f;
$custom-light: #84a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#507e2f",
  "rgb": {
    "r": 80,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 94.937,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54184,
    "c": 0.12092,
    "h": 134.3
  },
  "luminance": 0.16832
}

Semantic roles & 50–950 ramp

primary
#507E2F
secondary
#8B5DAC
accent
#52D59F
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #507E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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