#507F2F#507F2F

#507F2F is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.4% C 0.122 H 134.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#507F2F
RGBrgb(80, 127, 47)
HSLhsl(95, 46%, 34%)
HSVhsv(95, 63%, 50%)
CMYKcmyk(37%, 0%, 63%, 50.2%)
CIE-LABlab(48.37, -30.81, 37.57)
CIE-LCHlch(48.37, 48.59, 129.35°)
OKLaboklab(54.45% -0.0857 0.0874)
OKLCHoklch(54.45% 0.122 134.4)
XYZxyz(11.4105, 17.0890, 5.3861)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507F2F #5E2F7F
analogous
#787F2F #507F2F #2F7F36
triadic
#507F2F #2F507F #7F2F50
tetradic
#507F2F #2F787F #5E2F7F #7F362F
square
#507F2F #2F787F #5E2F7F #7F362F
split-complementary
#507F2F #362F7F #7F2F78
monochromatic
#18260E #34521E #507F2F #6CAC40 #8CC563

Accessibility & contrast

On white

4.75
#507F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#507F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507F2F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507F2F#FFFFFF#000000##FFFFFF
##507F2F1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847526
Deuteranopia (green-blind)
#7D7135
Tritanopia (blue-blind)
#507A6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #507f2f;
/* rgb */ color: rgb(80, 127, 47);
/* oklch */ color: oklch(54.4% 0.122 134.4);
Tailwind
colors: {
  custom: {
    50: '#84a46b',
    500: '#507f2f',
    950: '#000000',
  },
}
SCSS
$custom: #507f2f;
$custom-light: #84a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#507f2f",
  "rgb": {
    "r": 80,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 95.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.54448,
    "c": 0.12236,
    "h": 134.4
  },
  "luminance": 0.17089
}

Semantic roles & 50–950 ramp

primary
#507F2F
secondary
#8C5EAC
accent
#52D69F
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #507F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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