#508A1D#508A1D

#508A1D is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.2% C 0.150 H 134.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#508A1D
RGBrgb(80, 138, 29)
HSLhsl(92, 65%, 33%)
HSVhsv(92, 79%, 54%)
CMYKcmyk(42%, 0%, 79%, 45.9%)
CIE-LABlab(51.80, -37.19, 48.52)
CIE-LCHlch(51.80, 61.13, 127.47°)
OKLaboklab(57.21% -0.1044 0.1079)
OKLCHoklch(57.21% 0.15 134.1)
XYZxyz(12.6183, 19.9705, 4.3520)
Luminance0.1997 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A1D #571D8A
analogous
#868A1D #508A1D #1D8A21
triadic
#508A1D #1D508A #8A1D50
tetradic
#508A1D #1D868A #571D8A #8A211D
square
#508A1D #1D868A #571D8A #8A211D
split-complementary
#508A1D #211D8A #8A1D86
monochromatic
#152508 #335712 #508A1D #6DBD28 #8CD949

Accessibility & contrast

On white

4.20
#508A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#508A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A1D
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A1D#FFFFFF#000000##000000
##508A1D1.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E01
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#4F8476
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #508a1d;
/* rgb */ color: rgb(80, 138, 29);
/* oklch */ color: oklch(57.2% 0.150 134.1);
Tailwind
colors: {
  custom: {
    50: '#87ac62',
    500: '#508a1d',
    950: '#000000',
  },
}
SCSS
$custom: #508a1d;
$custom-light: #87ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#508a1d",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 91.927,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57208,
    "c": 0.15012,
    "h": 134.1
  },
  "luminance": 0.19971
}

Semantic roles & 50–950 ramp

primary
#508A1D
secondary
#8548BB
accent
#40E899
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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