#508E1B#508E1B

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

Color values

HEX#508E1B
RGBrgb(80, 142, 27)
HSLhsl(92, 68%, 33%)
HSVhsv(92, 81%, 56%)
CMYKcmyk(43.7%, 0%, 81%, 44.3%)
CIE-LABlab(53.09, -39.02, 50.38)
CIE-LCHlch(53.09, 63.72, 127.75°)
OKLaboklab(58.26% -0.1095 0.1115)
OKLCHoklch(58.26% 0.156 134.5)
XYZxyz(13.1788, 21.1299, 4.4208)
Luminance0.2113 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E1B #591B8E
analogous
#898E1B #508E1B #1B8E20
triadic
#508E1B #1B508E #8E1B50
tetradic
#508E1B #1B898E #591B8E #8E201B
square
#508E1B #1B898E #591B8E #8E201B
split-complementary
#508E1B #201B8E #8E1B89
monochromatic
#162707 #335B11 #508E1B #6DC125 #8CDC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508E1B#FFFFFF#000000##000000
##508E1B1.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)
#8B7D28
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e1b;
/* rgb */ color: rgb(80, 142, 27);
/* oklch */ color: oklch(58.3% 0.156 134.5);
Tailwind
colors: {
  custom: {
    50: '#87af62',
    500: '#508e1b',
    950: '#000000',
  },
}
SCSS
$custom: #508e1b;
$custom-light: #87af62;
$custom-dark: #000000;
JSON
{
  "hex": "#508e1b",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 92.348,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5826,
    "c": 0.15621,
    "h": 134.5
  },
  "luminance": 0.21131
}

Semantic roles & 50–950 ramp

primary
#508E1B
secondary
#8747BE
accent
#3DEB9B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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