#508A1F#508A1F

#508A1F is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.2% C 0.149 H 134.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#508A1F
RGBrgb(80, 138, 31)
HSLhsl(93, 63%, 33%)
HSVhsv(93, 78%, 54%)
CMYKcmyk(42%, 0%, 77.5%, 45.9%)
CIE-LABlab(51.82, -37.07, 47.84)
CIE-LCHlch(51.82, 60.52, 127.77°)
OKLaboklab(57.22% -0.1039 0.1068)
OKLCHoklch(57.22% 0.149 134.2)
XYZxyz(12.6438, 19.9807, 4.4865)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A1F #591F8A
analogous
#858A1F #508A1F #1F8A23
triadic
#508A1F #1F508A #8A1F50
tetradic
#508A1F #1F858A #591F8A #8A231F
square
#508A1F #1F858A #591F8A #8A231F
split-complementary
#508A1F #231F8A #8A1F85
monochromatic
#162609 #335814 #508A1F #6DBC2A #8CD74C

Accessibility & contrast

On white

4.20
#508A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#508A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A1F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A1F#FFFFFF#000000##000000
##508A1F1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E06
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#4F8476
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a1f;
/* rgb */ color: rgb(80, 138, 31);
/* oklch */ color: oklch(57.2% 0.149 134.2);
Tailwind
colors: {
  custom: {
    50: '#86ac63',
    500: '#508a1f',
    950: '#000000',
  },
}
SCSS
$custom: #508a1f;
$custom-light: #86ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#508a1f",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 92.523,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57221,
    "c": 0.149,
    "h": 134.2
  },
  "luminance": 0.19981
}

Semantic roles & 50–950 ramp

primary
#508A1F
secondary
#874BBA
accent
#41E69B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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