#878716#878716

#878716 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.4% C 0.125 H 109.6°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#878716
RGBrgb(135, 135, 22)
HSLhsl(60, 72%, 31%)
HSVhsv(60, 84%, 53%)
CMYKcmyk(0%, 0%, 83.7%, 47.1%)
CIE-LABlab(54.59, -12.95, 54.57)
CIE-LCHlch(54.59, 56.09, 103.35°)
OKLaboklab(60.41% -0.042 0.1177)
OKLCHoklch(60.41% 0.125 109.6)
XYZxyz(18.8012, 22.5374, 4.1187)
Luminance0.2254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878716 #161687
analogous
#874E16 #878716 #4E8716
triadic
#878716 #168787 #871687
tetradic
#878716 #16874E #161687 #87164E
square
#878716 #16874E #161687 #87164E
split-complementary
#878716 #164E87 #4E1687
monochromatic
#1E1E05 #52520D #878716 #BCBC1F #DFDF39

Accessibility & contrast

On white

3.81
#878716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#878716 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878716
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878716#FFFFFF#000000##000000
##8787161.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#948421
Tritanopia (blue-blind)
#917E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #878716;
/* rgb */ color: rgb(135, 135, 22);
/* oklch */ color: oklch(60.4% 0.125 109.6);
Tailwind
colors: {
  custom: {
    50: '#aea960',
    500: '#878716',
    950: '#000000',
  },
}
SCSS
$custom: #878716;
$custom-light: #aea960;
$custom-dark: #000000;
JSON
{
  "hex": "#878716",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 60,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.60412,
    "c": 0.125,
    "h": 109.6
  },
  "luminance": 0.22537
}

Semantic roles & 50–950 ramp

primary
#878716
secondary
#3E3EBB
accent
#39EF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #878716

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

Preview Lab → · Contrast checker → · Palette generator →

#878716 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva