#508D2B#508D2B

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

Color values

HEX#508D2B
RGBrgb(80, 141, 43)
HSLhsl(97, 53%, 36%)
HSVhsv(97, 70%, 55%)
CMYKcmyk(43.3%, 0%, 69.5%, 44.7%)
CIE-LABlab(52.87, -37.48, 44.25)
CIE-LCHlch(52.87, 57.99, 130.26°)
OKLaboklab(58.11% -0.1042 0.101)
OKLCHoklch(58.11% 0.145 135.9)
XYZxyz(13.2689, 20.9289, 5.6256)
Luminance0.2093 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D2B #682B8D
analogous
#818D2B #508D2B #2B8D37
triadic
#508D2B #2B508D #8D2B50
tetradic
#508D2B #2B818D #682B8D #8D372B
square
#508D2B #2B818D #682B8D #8D372B
split-complementary
#508D2B #372B8D #8D2B81
monochromatic
#1B2F0E #355E1D #508D2B #6BBC39 #8CCF63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D2B#FFFFFF#000000##000000
##508D2B1.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)
#92811D
Deuteranopia (green-blind)
#8A7C34
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d2b;
/* rgb */ color: rgb(80, 141, 43);
/* oklch */ color: oklch(58.1% 0.145 135.9);
Tailwind
colors: {
  custom: {
    50: '#86af6a',
    500: '#508d2b',
    950: '#000000',
  },
}
SCSS
$custom: #508d2b;
$custom-light: #86af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#508d2b",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 97.347,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58113,
    "c": 0.14511,
    "h": 135.9
  },
  "luminance": 0.2093
}

Semantic roles & 50–950 ramp

primary
#508D2B
secondary
#955EB6
accent
#4BDDA6
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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