#508D2D#508D2D

#508D2D is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.1% C 0.144 H 136.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#508D2D
RGBrgb(80, 141, 45)
HSLhsl(98, 52%, 36%)
HSVhsv(98, 68%, 55%)
CMYKcmyk(43.3%, 0%, 68.1%, 44.7%)
CIE-LABlab(52.89, -37.31, 43.42)
CIE-LCHlch(52.89, 57.25, 130.67°)
OKLaboklab(58.13% -0.1035 0.0995)
OKLCHoklch(58.13% 0.144 136.1)
XYZxyz(13.3064, 20.9439, 5.8236)
Luminance0.2094 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D2D #6A2D8D
analogous
#808D2D #508D2D #2D8D3A
triadic
#508D2D #2D508D #8D2D50
tetradic
#508D2D #2D808D #6A2D8D #8D3A2D
square
#508D2D #2D808D #6A2D8D #8D3A2D
split-complementary
#508D2D #3A2D8D #8D2D80
monochromatic
#1B300F #365F1E #508D2D #6ABB3C #8CCE66

Accessibility & contrast

On white

4.05
#508D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D2D#FFFFFF#000000##000000
##508D2D1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928120
Deuteranopia (green-blind)
#8A7C35
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d2d;
/* rgb */ color: rgb(80, 141, 45);
/* oklch */ color: oklch(58.1% 0.144 136.1);
Tailwind
colors: {
  custom: {
    50: '#86af6b',
    500: '#508d2d',
    950: '#000000',
  },
}
SCSS
$custom: #508d2d;
$custom-light: #86af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#508d2d",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 98.125,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58132,
    "c": 0.14362,
    "h": 136.1
  },
  "luminance": 0.20945
}

Semantic roles & 50–950 ramp

primary
#508D2D
secondary
#9661B5
accent
#4DDBA7
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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