#508D2E#508D2E

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

Color values

HEX#508D2E
RGBrgb(80, 141, 46)
HSLhsl(99, 51%, 37%)
HSVhsv(99, 67%, 55%)
CMYKcmyk(43.3%, 0%, 67.4%, 44.7%)
CIE-LABlab(52.90, -37.22, 42.99)
CIE-LCHlch(52.90, 56.86, 130.88°)
OKLaboklab(58.14% -0.1032 0.0988)
OKLCHoklch(58.14% 0.143 136.3)
XYZxyz(13.3259, 20.9517, 5.9262)
Luminance0.2095 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D2E #6B2E8D
analogous
#808D2E #508D2E #2E8D3C
triadic
#508D2E #2E508D #8D2E50
tetradic
#508D2E #2E808D #6B2E8D #8D3C2E
square
#508D2E #2E808D #6B2E8D #8D3C2E
split-complementary
#508D2E #3C2E8D #8D2E80
monochromatic
#1C3110 #365F1F #508D2E #6ABB3D #8CCE68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D2E#FFFFFF#000000##000000
##508D2E1.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)
#928122
Deuteranopia (green-blind)
#8A7C36
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d2e;
/* rgb */ color: rgb(80, 141, 46);
/* oklch */ color: oklch(58.1% 0.143 136.3);
Tailwind
colors: {
  custom: {
    50: '#86af6c',
    500: '#508d2e',
    950: '#000000',
  },
}
SCSS
$custom: #508d2e;
$custom-light: #86af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#508d2e",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 98.526,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58142,
    "c": 0.14286,
    "h": 136.3
  },
  "luminance": 0.20952
}

Semantic roles & 50–950 ramp

primary
#508D2E
secondary
#9762B5
accent
#4EDAA8
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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