#508E1F#508E1F

#508E1F is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.3% C 0.154 H 134.8°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#508E1F
RGBrgb(80, 142, 31)
HSLhsl(94, 64%, 34%)
HSVhsv(94, 78%, 56%)
CMYKcmyk(43.7%, 0%, 78.2%, 44.3%)
CIE-LABlab(53.11, -38.79, 49.10)
CIE-LCHlch(53.11, 62.57, 128.31°)
OKLaboklab(58.29% -0.1086 0.1094)
OKLCHoklch(58.29% 0.154 134.8)
XYZxyz(13.2283, 21.1497, 4.6813)
Luminance0.2115 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E1F #5D1F8E
analogous
#888E1F #508E1F #1F8E26
triadic
#508E1F #1F508E #8E1F50
tetradic
#508E1F #1F888E #5D1F8E #8E261F
square
#508E1F #1F888E #5D1F8E #8E261F
split-complementary
#508E1F #261F8E #8E1F88
monochromatic
#172A09 #345C14 #508E1F #6CC02A #8CD94F

Accessibility & contrast

On white

4.02
#508E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#508E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E1F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E1F#FFFFFF#000000##000000
##508E1F1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948204
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e1f;
/* rgb */ color: rgb(80, 142, 31);
/* oklch */ color: oklch(58.3% 0.154 134.8);
Tailwind
colors: {
  custom: {
    50: '#87af64',
    500: '#508e1f',
    950: '#000000',
  },
}
SCSS
$custom: #508e1f;
$custom-light: #87af64;
$custom-dark: #000000;
JSON
{
  "hex": "#508e1f",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 93.514,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58285,
    "c": 0.15412,
    "h": 134.8
  },
  "luminance": 0.2115
}

Semantic roles & 50–950 ramp

primary
#508E1F
secondary
#8B4DBB
accent
#41E79E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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