#508F1A#508F1A

#508F1A is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.5% C 0.158 H 134.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#508F1A
RGBrgb(80, 143, 26)
HSLhsl(92, 69%, 33%)
HSVhsv(92, 82%, 56%)
CMYKcmyk(44.1%, 0%, 81.8%, 43.9%)
CIE-LABlab(53.41, -39.49, 50.99)
CIE-LCHlch(53.41, 64.49, 127.76°)
OKLaboklab(58.52% -0.1108 0.1126)
OKLCHoklch(58.52% 0.158 134.6)
XYZxyz(13.3169, 21.4242, 4.4107)
Luminance0.2142 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F1A #591A8F
analogous
#8A8F1A #508F1A #1A8F1F
triadic
#508F1A #1A508F #8F1A50
tetradic
#508F1A #1A8A8F #591A8F #8F1F1A
square
#508F1A #1A8A8F #591A8F #8F1F1A
split-complementary
#508F1A #1F1A8F #8F1A8A
monochromatic
#162707 #335B11 #508F1A #6DC323 #8CDD46

Accessibility & contrast

On white

3.97
#508F1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#508F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F1A
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F1A#FFFFFF#000000##000000
##508F1A1.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8C7E28
Tritanopia (blue-blind)
#4F897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f1a;
/* rgb */ color: rgb(80, 143, 26);
/* oklch */ color: oklch(58.5% 0.158 134.6);
Tailwind
colors: {
  custom: {
    50: '#87b062',
    500: '#508f1a',
    950: '#000000',
  },
}
SCSS
$custom: #508f1a;
$custom-light: #87b062;
$custom-dark: #000000;
JSON
{
  "hex": "#508f1a",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 26
  },
  "hsl": {
    "h": 92.308,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58521,
    "c": 0.15795,
    "h": 134.6
  },
  "luminance": 0.21425
}

Semantic roles & 50–950 ramp

primary
#508F1A
secondary
#8746BF
accent
#3CEC9B
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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