#508D2F#508D2F

#508D2F is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.2% C 0.142 H 136.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#508D2F
RGBrgb(80, 141, 47)
HSLhsl(99, 50%, 37%)
HSVhsv(99, 67%, 55%)
CMYKcmyk(43.3%, 0%, 66.7%, 44.7%)
CIE-LABlab(52.91, -37.13, 42.56)
CIE-LCHlch(52.91, 56.48, 131.10°)
OKLaboklab(58.15% -0.1029 0.098)
OKLCHoklch(58.15% 0.142 136.4)
XYZxyz(13.3459, 20.9597, 6.0312)
Luminance0.2096 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D2F #6C2F8D
analogous
#7F8D2F #508D2F #2F8D3D
triadic
#508D2F #2F508D #8D2F50
tetradic
#508D2F #2F7F8D #6C2F8D #8D3D2F
square
#508D2F #2F7F8D #6C2F8D #8D3D2F
split-complementary
#508D2F #3D2F8D #8D2F7F
monochromatic
#1C3110 #365F20 #508D2F #6ABB3E #8CCD69

Accessibility & contrast

On white

4.04
#508D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#508D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D2F
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D2F#FFFFFF#000000##000000
##508D2F1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928223
Deuteranopia (green-blind)
#8A7C37
Tritanopia (blue-blind)
#4D887A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d2f;
/* rgb */ color: rgb(80, 141, 47);
/* oklch */ color: oklch(58.2% 0.142 136.4);
Tailwind
colors: {
  custom: {
    50: '#86af6c',
    500: '#508d2f',
    950: '#000000',
  },
}
SCSS
$custom: #508d2f;
$custom-light: #86af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#508d2f",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 98.936,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58152,
    "c": 0.14209,
    "h": 136.4
  },
  "luminance": 0.2096
}

Semantic roles & 50–950 ramp

primary
#508D2F
secondary
#9864B4
accent
#4EDAA9
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508D2F

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

Preview Lab → · Contrast checker → · Palette generator →

#508D2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva