#508C27#508C27

#508C27 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.147 H 135.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#508C27
RGBrgb(80, 140, 39)
HSLhsl(96, 56%, 35%)
HSVhsv(96, 72%, 55%)
CMYKcmyk(42.9%, 0%, 72.1%, 45.1%)
CIE-LABlab(52.52, -37.37, 45.53)
CIE-LCHlch(52.52, 58.90, 129.38°)
OKLaboklab(57.81% -0.1042 0.1031)
OKLCHoklch(57.81% 0.147 135.3)
XYZxyz(13.0523, 20.6074, 5.2089)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C27 #63278C
analogous
#828C27 #508C27 #278C31
triadic
#508C27 #27508C #8C2750
tetradic
#508C27 #27828C #63278C #8C3127
square
#508C27 #27828C #63278C #8C3127
split-complementary
#508C27 #31278C #8C2782
monochromatic
#192C0C #355C1A #508C27 #6BBC34 #8CD25C

Accessibility & contrast

On white

4.10
#508C27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#508C27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C27
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C27#FFFFFF#000000##000000
##508C271.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918017
Deuteranopia (green-blind)
#897B30
Tritanopia (blue-blind)
#4E8778
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c27;
/* rgb */ color: rgb(80, 140, 39);
/* oklch */ color: oklch(57.8% 0.147 135.3);
Tailwind
colors: {
  custom: {
    50: '#86ae68',
    500: '#508c27',
    950: '#000000',
  },
}
SCSS
$custom: #508c27;
$custom-light: #86ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#508c27",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 39
  },
  "hsl": {
    "h": 95.644,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.57813,
    "c": 0.14659,
    "h": 135.3
  },
  "luminance": 0.20608
}

Semantic roles & 50–950 ramp

primary
#508C27
secondary
#9058B7
accent
#48E0A2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C27

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

Preview Lab → · Contrast checker → · Palette generator →

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