#508B1D#508B1D

#508B1D is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.5% C 0.151 H 134.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#508B1D
RGBrgb(80, 139, 29)
HSLhsl(92, 65%, 33%)
HSVhsv(92, 79%, 55%)
CMYKcmyk(42.4%, 0%, 79.1%, 45.5%)
CIE-LABlab(52.13, -37.62, 48.83)
CIE-LCHlch(52.13, 61.64, 127.61°)
OKLaboklab(57.47% -0.1056 0.1085)
OKLCHoklch(57.47% 0.151 134.2)
XYZxyz(12.7624, 20.2587, 4.4000)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B1D #581D8B
analogous
#878B1D #508B1D #1D8B21
triadic
#508B1D #1D508B #8B1D50
tetradic
#508B1D #1D878B #581D8B #8B211D
square
#508B1D #1D878B #581D8B #8B211D
split-complementary
#508B1D #211D8B #8B1D87
monochromatic
#162608 #335812 #508B1D #6DBE28 #8CD949

Accessibility & contrast

On white

4.16
#508B1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#508B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B1D
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B1D#FFFFFF#000000##000000
##508B1D1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F01
Deuteranopia (green-blind)
#897B29
Tritanopia (blue-blind)
#4F8576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b1d;
/* rgb */ color: rgb(80, 139, 29);
/* oklch */ color: oklch(57.5% 0.151 134.2);
Tailwind
colors: {
  custom: {
    50: '#87ad62',
    500: '#508b1d',
    950: '#000000',
  },
}
SCSS
$custom: #508b1d;
$custom-light: #87ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#508b1d",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 92.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57474,
    "c": 0.1514,
    "h": 134.2
  },
  "luminance": 0.20259
}

Semantic roles & 50–950 ramp

primary
#508B1D
secondary
#8649BB
accent
#3FE89A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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