#508C16#508C16

#508C16 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.7% C 0.156 H 133.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#508C16
RGBrgb(80, 140, 22)
HSLhsl(91, 73%, 32%)
HSVhsv(91, 84%, 55%)
CMYKcmyk(42.9%, 0%, 84.3%, 45.1%)
CIE-LABlab(52.42, -38.42, 51.24)
CIE-LCHlch(52.42, 64.04, 126.86°)
OKLaboklab(57.7% -0.1081 0.1125)
OKLCHoklch(57.7% 0.156 133.9)
XYZxyz(12.8309, 20.5189, 4.0434)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C16 #52168C
analogous
#8B8C16 #508C16 #168C17
triadic
#508C16 #16508C #8C1650
tetradic
#508C16 #168B8C #52168C #8C1716
square
#508C16 #168B8C #52168C #8C1716
split-complementary
#508C16 #17168C #8C168B
monochromatic
#142205 #32570E #508C16 #6EC11E #8DE03C

Accessibility & contrast

On white

4.11
#508C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#508C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C16
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C16#FFFFFF#000000##000000
##508C161.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8A7B25
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c16;
/* rgb */ color: rgb(80, 140, 22);
/* oklch */ color: oklch(57.7% 0.156 133.9);
Tailwind
colors: {
  custom: {
    50: '#87ae60',
    500: '#508c16',
    950: '#000000',
  },
}
SCSS
$custom: #508c16;
$custom-light: #87ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#508c16",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 22
  },
  "hsl": {
    "h": 90.508,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57701,
    "c": 0.15603,
    "h": 133.9
  },
  "luminance": 0.2052
}

Semantic roles & 50–950 ramp

primary
#508C16
secondary
#803EC0
accent
#38F095
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #508C16

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

Preview Lab → · Contrast checker → · Palette generator →

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