#508F1D#508F1D

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

Color values

HEX#508F1D
RGBrgb(80, 143, 29)
HSLhsl(93, 66%, 34%)
HSVhsv(93, 80%, 56%)
CMYKcmyk(44.1%, 0%, 79.7%, 43.9%)
CIE-LABlab(53.43, -39.33, 50.06)
CIE-LCHlch(53.43, 63.66, 128.15°)
OKLaboklab(58.54% -0.1102 0.1111)
OKLCHoklch(58.54% 0.156 134.8)
XYZxyz(13.3522, 21.4383, 4.5966)
Luminance0.2144 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F1D #5C1D8F
analogous
#898F1D #508F1D #1D8F23
triadic
#508F1D #1D508F #8F1D50
tetradic
#508F1D #1D898F #5C1D8F #8F231D
square
#508F1D #1D898F #5C1D8F #8F231D
split-complementary
#508F1D #231D8F #8F1D89
monochromatic
#172908 #345C13 #508F1D #6CC227 #8CDB4C

Accessibility & contrast

On white

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

On black

5.29
#508F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F1D
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F1D#FFFFFF#000000##000000
##508F1D1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #508f1d;
/* rgb */ color: rgb(80, 143, 29);
/* oklch */ color: oklch(58.5% 0.156 134.8);
Tailwind
colors: {
  custom: {
    50: '#87b063',
    500: '#508f1d',
    950: '#000000',
  },
}
SCSS
$custom: #508f1d;
$custom-light: #87b063;
$custom-dark: #000000;
JSON
{
  "hex": "#508f1d",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 93.158,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58538,
    "c": 0.15646,
    "h": 134.8
  },
  "luminance": 0.21439
}

Semantic roles & 50–950 ramp

primary
#508F1D
secondary
#8A4BBD
accent
#3FE99D
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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