#508E1C#508E1C

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

Color values

HEX#508E1C
RGBrgb(80, 142, 28)
HSLhsl(93, 67%, 33%)
HSVhsv(93, 80%, 56%)
CMYKcmyk(43.7%, 0%, 80.3%, 44.3%)
CIE-LABlab(53.10, -38.96, 50.07)
CIE-LCHlch(53.10, 63.44, 127.89°)
OKLaboklab(58.27% -0.1092 0.111)
OKLCHoklch(58.27% 0.156 134.6)
XYZxyz(13.1906, 21.1346, 4.4827)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E1C #5A1C8E
analogous
#898E1C #508E1C #1C8E21
triadic
#508E1C #1C508E #8E1C50
tetradic
#508E1C #1C898E #5A1C8E #8E211C
square
#508E1C #1C898E #5A1C8E #8E211C
split-complementary
#508E1C #211C8E #8E1C89
monochromatic
#162808 #335B12 #508E1C #6DC126 #8CDB49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508E1C#FFFFFF#000000##000000
##508E1C1.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)
#948200
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e1c;
/* rgb */ color: rgb(80, 142, 28);
/* oklch */ color: oklch(58.3% 0.156 134.6);
Tailwind
colors: {
  custom: {
    50: '#87af62',
    500: '#508e1c',
    950: '#000000',
  },
}
SCSS
$custom: #508e1c;
$custom-light: #87af62;
$custom-dark: #000000;
JSON
{
  "hex": "#508e1c",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 92.632,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58266,
    "c": 0.15572,
    "h": 134.6
  },
  "luminance": 0.21135
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #508E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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