#508F1B#508F1B

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

Color values

HEX#508F1B
RGBrgb(80, 143, 27)
HSLhsl(93, 68%, 33%)
HSVhsv(93, 81%, 56%)
CMYKcmyk(44.1%, 0%, 81.1%, 43.9%)
CIE-LABlab(53.42, -39.44, 50.68)
CIE-LCHlch(53.42, 64.22, 127.89°)
OKLaboklab(58.53% -0.1106 0.1121)
OKLCHoklch(58.53% 0.157 134.6)
XYZxyz(13.3283, 21.4288, 4.4706)
Luminance0.2143 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F1B #5A1B8F
analogous
#8A8F1B #508F1B #1B8F20
triadic
#508F1B #1B508F #8F1B50
tetradic
#508F1B #1B8A8F #5A1B8F #8F201B
square
#508F1B #1B8A8F #5A1B8F #8F201B
split-complementary
#508F1B #201B8F #8F1B8A
monochromatic
#162808 #335C11 #508F1B #6DC225 #8CDC48

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508F1B#FFFFFF#000000##000000
##508F1B1.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)
#8C7E28
Tritanopia (blue-blind)
#4F897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f1b;
/* rgb */ color: rgb(80, 143, 27);
/* oklch */ color: oklch(58.5% 0.157 134.6);
Tailwind
colors: {
  custom: {
    50: '#87b062',
    500: '#508f1b',
    950: '#000000',
  },
}
SCSS
$custom: #508f1b;
$custom-light: #87b062;
$custom-dark: #000000;
JSON
{
  "hex": "#508f1b",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 92.586,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58526,
    "c": 0.15746,
    "h": 134.6
  },
  "luminance": 0.2143
}

Semantic roles & 50–950 ramp

primary
#508F1B
secondary
#8848BE
accent
#3DEB9B
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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