#508B1E#508B1E

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

Color values

HEX#508B1E
RGBrgb(80, 139, 30)
HSLhsl(92, 64%, 33%)
HSVhsv(92, 78%, 55%)
CMYKcmyk(42.4%, 0%, 78.4%, 45.5%)
CIE-LABlab(52.13, -37.56, 48.50)
CIE-LCHlch(52.13, 61.34, 127.76°)
OKLaboklab(57.48% -0.1053 0.108)
OKLCHoklch(57.48% 0.151 134.3)
XYZxyz(12.7750, 20.2638, 4.4662)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B1E #591E8B
analogous
#868B1E #508B1E #1E8B22
triadic
#508B1E #1E508B #8B1E50
tetradic
#508B1E #1E868B #591E8B #8B221E
square
#508B1E #1E868B #591E8B #8B221E
split-complementary
#508B1E #221E8B #8B1E86
monochromatic
#162608 #335913 #508B1E #6DBD29 #8CD84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508B1E#FFFFFF#000000##000000
##508B1E1.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)
#917F03
Deuteranopia (green-blind)
#897B2A
Tritanopia (blue-blind)
#4F8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b1e;
/* rgb */ color: rgb(80, 139, 30);
/* oklch */ color: oklch(57.5% 0.151 134.3);
Tailwind
colors: {
  custom: {
    50: '#87ad63',
    500: '#508b1e',
    950: '#000000',
  },
}
SCSS
$custom: #508b1e;
$custom-light: #87ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#508b1e",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 92.477,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57481,
    "c": 0.15085,
    "h": 134.3
  },
  "luminance": 0.20264
}

Semantic roles & 50–950 ramp

primary
#508B1E
secondary
#874ABB
accent
#40E79B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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