#508D1C#508D1C

#508D1C is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.0% C 0.154 H 134.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#508D1C
RGBrgb(80, 141, 28)
HSLhsl(92, 67%, 33%)
HSVhsv(92, 80%, 55%)
CMYKcmyk(43.3%, 0%, 80.1%, 44.7%)
CIE-LABlab(52.77, -38.54, 49.77)
CIE-LCHlch(52.77, 62.94, 127.75°)
OKLaboklab(58% -0.1081 0.1103)
OKLCHoklch(58% 0.154 134.4)
XYZxyz(13.0425, 20.8383, 4.4334)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D1C #591C8D
analogous
#888D1C #508D1C #1C8D20
triadic
#508D1C #1C508D #8D1C50
tetradic
#508D1C #1C888D #591C8D #8D201C
square
#508D1C #1C888D #591C8D #8D201C
split-complementary
#508D1C #201C8D #8D1C88
monochromatic
#162708 #335A12 #508D1C #6DC026 #8CDB49

Accessibility & contrast

On white

4.06
#508D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#508D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D1C
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D1C#FFFFFF#000000##000000
##508D1C1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d1c;
/* rgb */ color: rgb(80, 141, 28);
/* oklch */ color: oklch(58.0% 0.154 134.4);
Tailwind
colors: {
  custom: {
    50: '#87af62',
    500: '#508d1c',
    950: '#000000',
  },
}
SCSS
$custom: #508d1c;
$custom-light: #87af62;
$custom-dark: #000000;
JSON
{
  "hex": "#508d1c",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 92.389,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58,
    "c": 0.15446,
    "h": 134.4
  },
  "luminance": 0.20839
}

Semantic roles & 50–950 ramp

primary
#508D1C
secondary
#8748BD
accent
#3EEA9B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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