#508B16#508B16

#508B16 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.4% C 0.155 H 133.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#508B16
RGBrgb(80, 139, 22)
HSLhsl(90, 73%, 32%)
HSVhsv(90, 84%, 55%)
CMYKcmyk(42.4%, 0%, 84.2%, 45.5%)
CIE-LABlab(52.09, -37.99, 50.95)
CIE-LCHlch(52.09, 63.55, 126.71°)
OKLaboklab(57.44% -0.107 0.1119)
OKLCHoklch(57.44% 0.155 133.7)
XYZxyz(12.6855, 20.2280, 3.9949)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B16 #51168B
analogous
#8B8B16 #508B16 #168B16
triadic
#508B16 #16508B #8B1650
tetradic
#508B16 #168B8B #51168B #8B1616
square
#508B16 #168B8B #51168B #8B1616
split-complementary
#508B16 #16168B #8B168B
monochromatic
#132105 #32560E #508B16 #6EC01E #8DE03B

Accessibility & contrast

On white

4.16
#508B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#508B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B16
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B16#FFFFFF#000000##000000
##508B161.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#897B24
Tritanopia (blue-blind)
#508576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b16;
/* rgb */ color: rgb(80, 139, 22);
/* oklch */ color: oklch(57.4% 0.155 133.7);
Tailwind
colors: {
  custom: {
    50: '#87ad5f',
    500: '#508b16',
    950: '#000000',
  },
}
SCSS
$custom: #508b16;
$custom-light: #87ad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#508b16",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 90.256,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57435,
    "c": 0.1548,
    "h": 133.7
  },
  "luminance": 0.20229
}

Semantic roles & 50–950 ramp

primary
#508B16
secondary
#7F3EBF
accent
#38EF95
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #508B16

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

Preview Lab → · Contrast checker → · Palette generator →

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