#508D27#508D27

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

Color values

HEX#508D27
RGBrgb(80, 141, 39)
HSLhsl(96, 57%, 35%)
HSVhsv(96, 72%, 55%)
CMYKcmyk(43.3%, 0%, 72.3%, 44.7%)
CIE-LABlab(52.84, -37.81, 45.86)
CIE-LCHlch(52.84, 59.43, 129.50°)
OKLaboklab(58.08% -0.1053 0.1038)
OKLCHoklch(58.08% 0.148 135.4)
XYZxyz(13.1990, 20.9010, 5.2579)
Luminance0.2090 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D27 #64278D
analogous
#838D27 #508D27 #278D31
triadic
#508D27 #27508D #8D2750
tetradic
#508D27 #27838D #64278D #8D3127
square
#508D27 #27838D #64278D #8D3127
split-complementary
#508D27 #31278D #8D2783
monochromatic
#1A2D0C #355D1A #508D27 #6BBD34 #8CD25C

Accessibility & contrast

On white

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

On black

5.18
#508D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D27
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D27#FFFFFF#000000##000000
##508D271.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928116
Deuteranopia (green-blind)
#8A7C31
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d27;
/* rgb */ color: rgb(80, 141, 39);
/* oklch */ color: oklch(58.1% 0.148 135.4);
Tailwind
colors: {
  custom: {
    50: '#86af68',
    500: '#508d27',
    950: '#000000',
  },
}
SCSS
$custom: #508d27;
$custom-light: #86af68;
$custom-dark: #000000;
JSON
{
  "hex": "#508d27",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 95.882,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58078,
    "c": 0.14791,
    "h": 135.4
  },
  "luminance": 0.20902
}

Semantic roles & 50–950 ramp

primary
#508D27
secondary
#9159B7
accent
#48E0A3
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D27

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

Preview Lab → · Contrast checker → · Palette generator →

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