#508C1A#508C1A

#508C1A is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.7% C 0.154 H 134.1°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#508C1A
RGBrgb(80, 140, 26)
HSLhsl(92, 69%, 33%)
HSVhsv(92, 81%, 55%)
CMYKcmyk(42.9%, 0%, 81.4%, 45.1%)
CIE-LABlab(52.44, -38.22, 50.09)
CIE-LCHlch(52.44, 63.00, 127.35°)
OKLaboklab(57.72% -0.1074 0.1107)
OKLCHoklch(57.72% 0.154 134.1)
XYZxyz(12.8726, 20.5355, 4.2626)
Luminance0.2054 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C1A #561A8C
analogous
#898C1A #508C1A #1A8C1D
triadic
#508C1A #1A508C #8C1A50
tetradic
#508C1A #1A898C #561A8C #8C1D1A
square
#508C1A #1A898C #561A8C #8C1D1A
split-complementary
#508C1A #1D1A8C #8C1A89
monochromatic
#152507 #335810 #508C1A #6DC024 #8CDC44

Accessibility & contrast

On white

4.11
#508C1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#508C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C1A
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C1A#FFFFFF#000000##000000
##508C1A1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8A7B27
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c1a;
/* rgb */ color: rgb(80, 140, 26);
/* oklch */ color: oklch(57.7% 0.154 134.1);
Tailwind
colors: {
  custom: {
    50: '#87ae61',
    500: '#508c1a',
    950: '#000000',
  },
}
SCSS
$custom: #508c1a;
$custom-light: #87ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#508c1a",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 26
  },
  "hsl": {
    "h": 91.579,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57722,
    "c": 0.1542,
    "h": 134.1
  },
  "luminance": 0.20536
}

Semantic roles & 50–950 ramp

primary
#508C1A
secondary
#8444BE
accent
#3CEC99
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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