#508A1B#508A1B

#508A1B is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.2% C 0.151 H 133.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#508A1B
RGBrgb(80, 138, 27)
HSLhsl(91, 67%, 32%)
HSVhsv(91, 80%, 54%)
CMYKcmyk(42%, 0%, 80.4%, 45.9%)
CIE-LABlab(51.79, -37.30, 49.17)
CIE-LCHlch(51.79, 61.72, 127.19°)
OKLaboklab(57.2% -0.1049 0.1089)
OKLCHoklch(57.2% 0.151 133.9)
XYZxyz(12.5944, 19.9609, 4.2259)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A1B #551B8A
analogous
#888A1B #508A1B #1B8A1D
triadic
#508A1B #1B508A #8A1B50
tetradic
#508A1B #1B888A #551B8A #8A1D1B
square
#508A1B #1B888A #551B8A #8A1D1B
split-complementary
#508A1B #1D1B8A #8A1B88
monochromatic
#152407 #325711 #508A1B #6EBD25 #8CDB45

Accessibility & contrast

On white

4.21
#508A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#508A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A1B
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A1B#FFFFFF#000000##000000
##508A1B1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#508475
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #508a1b;
/* rgb */ color: rgb(80, 138, 27);
/* oklch */ color: oklch(57.2% 0.151 133.9);
Tailwind
colors: {
  custom: {
    50: '#87ac61',
    500: '#508a1b',
    950: '#000000',
  },
}
SCSS
$custom: #508a1b;
$custom-light: #87ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#508a1b",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 91.351,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57196,
    "c": 0.15118,
    "h": 133.9
  },
  "luminance": 0.19962
}

Semantic roles & 50–950 ramp

primary
#508A1B
secondary
#8345BC
accent
#3EEA98
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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