#508B2D#508B2D

#508B2D is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.6% C 0.141 H 135.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#508B2D
RGBrgb(80, 139, 45)
HSLhsl(98, 51%, 36%)
HSVhsv(98, 68%, 55%)
CMYKcmyk(42.4%, 0%, 67.6%, 45.5%)
CIE-LABlab(52.24, -36.43, 42.73)
CIE-LCHlch(52.24, 56.15, 130.46°)
OKLaboklab(57.6% -0.1012 0.0981)
OKLCHoklch(57.6% 0.141 135.9)
XYZxyz(13.0142, 20.3595, 5.7261)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B2D #682D8B
analogous
#7F8B2D #508B2D #2D8B39
triadic
#508B2D #2D508B #8B2D50
tetradic
#508B2D #2D7F8B #682D8B #8B392D
square
#508B2D #2D7F8B #682D8B #8B392D
split-complementary
#508B2D #392D8B #8B2D7F
monochromatic
#1B2F0F #355D1E #508B2D #6BB93C #8CCD65

Accessibility & contrast

On white

4.14
#508B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#508B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B2D
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B2D#FFFFFF#000000##000000
##508B2D1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908021
Deuteranopia (green-blind)
#887B35
Tritanopia (blue-blind)
#4E8678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508b2d;
/* rgb */ color: rgb(80, 139, 45);
/* oklch */ color: oklch(57.6% 0.141 135.9);
Tailwind
colors: {
  custom: {
    50: '#86ad6b',
    500: '#508b2d',
    950: '#000000',
  },
}
SCSS
$custom: #508b2d;
$custom-light: #86ad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#508b2d",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 97.66,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.57603,
    "c": 0.1409,
    "h": 135.9
  },
  "luminance": 0.2036
}

Semantic roles & 50–950 ramp

primary
#508B2D
secondary
#9560B4
accent
#4DDBA6
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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