#508B1A#508B1A

#508B1A is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.5% C 0.153 H 134.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#508B1A
RGBrgb(80, 139, 26)
HSLhsl(91, 68%, 32%)
HSVhsv(91, 81%, 55%)
CMYKcmyk(42.4%, 0%, 81.3%, 45.5%)
CIE-LABlab(52.11, -37.79, 49.78)
CIE-LCHlch(52.11, 62.50, 127.20°)
OKLaboklab(57.46% -0.1062 0.11)
OKLCHoklch(57.46% 0.153 134)
XYZxyz(12.7271, 20.2446, 4.2141)
Luminance0.2024 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B1A #551A8B
analogous
#898B1A #508B1A #1A8B1C
triadic
#508B1A #1A508B #8B1A50
tetradic
#508B1A #1A898B #551A8B #8B1C1A
square
#508B1A #1A898B #551A8B #8B1C1A
split-complementary
#508B1A #1C1A8B #8B1A89
monochromatic
#152407 #325710 #508B1A #6EBF24 #8CDC43

Accessibility & contrast

On white

4.16
#508B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#508B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B1A
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B1A#FFFFFF#000000##000000
##508B1A1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#897B27
Tritanopia (blue-blind)
#4F8576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b1a;
/* rgb */ color: rgb(80, 139, 26);
/* oklch */ color: oklch(57.5% 0.153 134.0);
Tailwind
colors: {
  custom: {
    50: '#87ad61',
    500: '#508b1a',
    950: '#000000',
  },
}
SCSS
$custom: #508b1a;
$custom-light: #87ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#508b1a",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 91.327,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57456,
    "c": 0.15295,
    "h": 134
  },
  "luminance": 0.20245
}

Semantic roles & 50–950 ramp

primary
#508B1A
secondary
#8344BD
accent
#3CEB98
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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