#508A27#508A27

#508A27 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.3% C 0.144 H 135.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#508A27
RGBrgb(80, 138, 39)
HSLhsl(95, 56%, 35%)
HSVhsv(95, 72%, 54%)
CMYKcmyk(42%, 0%, 71.7%, 45.9%)
CIE-LABlab(51.87, -36.50, 44.86)
CIE-LCHlch(51.87, 57.84, 129.13°)
OKLaboklab(57.28% -0.1018 0.1017)
OKLCHoklch(57.28% 0.144 135)
XYZxyz(12.7627, 20.0282, 5.1124)
Luminance0.2003 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A27 #61278A
analogous
#818A27 #508A27 #278A30
triadic
#508A27 #27508A #8A2750
tetradic
#508A27 #27818A #61278A #8A3027
square
#508A27 #27818A #61278A #8A3027
split-complementary
#508A27 #30278A #8A2781
monochromatic
#192B0C #345A1A #508A27 #6CBA34 #8CD15B

Accessibility & contrast

On white

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

On black

5.01
#508A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A27
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A27#FFFFFF#000000##000000
##508A271.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F17
Deuteranopia (green-blind)
#877A30
Tritanopia (blue-blind)
#4F8576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a27;
/* rgb */ color: rgb(80, 138, 39);
/* oklch */ color: oklch(57.3% 0.144 135.0);
Tailwind
colors: {
  custom: {
    50: '#86ac67',
    500: '#508a27',
    950: '#000000',
  },
}
SCSS
$custom: #508a27;
$custom-light: #86ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#508a27",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 95.152,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57283,
    "c": 0.14393,
    "h": 135
  },
  "luminance": 0.20029
}

Semantic roles & 50–950 ramp

primary
#508A27
secondary
#8F57B6
accent
#49DFA1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508A27

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

Preview Lab → · Contrast checker → · Palette generator →

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