#508B1F#508B1F

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

Color values

HEX#508B1F
RGBrgb(80, 139, 31)
HSLhsl(93, 64%, 33%)
HSVhsv(93, 78%, 55%)
CMYKcmyk(42.4%, 0%, 77.7%, 45.5%)
CIE-LABlab(52.14, -37.50, 48.16)
CIE-LCHlch(52.14, 61.04, 127.91°)
OKLaboklab(57.49% -0.1051 0.1074)
OKLCHoklch(57.49% 0.15 134.4)
XYZxyz(12.7880, 20.2690, 4.5345)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B1F #5A1F8B
analogous
#868B1F #508B1F #1F8B24
triadic
#508B1F #1F508B #8B1F50
tetradic
#508B1F #1F868B #5A1F8B #8B241F
square
#508B1F #1F868B #5A1F8B #8B241F
split-complementary
#508B1F #241F8B #8B1F86
monochromatic
#162709 #335914 #508B1F #6DBD2A #8CD74D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #508b1f;
/* rgb */ color: rgb(80, 139, 31);
/* oklch */ color: oklch(57.5% 0.150 134.4);
Tailwind
colors: {
  custom: {
    50: '#87ad63',
    500: '#508b1f',
    950: '#000000',
  },
}
SCSS
$custom: #508b1f;
$custom-light: #87ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#508b1f",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 92.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57487,
    "c": 0.15029,
    "h": 134.4
  },
  "luminance": 0.2027
}

Semantic roles & 50–950 ramp

primary
#508B1F
secondary
#884CBA
accent
#41E79C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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