#878016#878016

#878016 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.118 H 105.4°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#878016
RGBrgb(135, 128, 22)
HSLhsl(56, 72%, 31%)
HSVhsv(56, 84%, 53%)
CMYKcmyk(0%, 5.2%, 83.7%, 47.1%)
CIE-LABlab(52.56, -9.16, 52.83)
CIE-LCHlch(52.56, 53.62, 99.84°)
OKLaboklab(58.79% -0.0314 0.114)
OKLCHoklch(58.79% 0.118 105.4)
XYZxyz(17.8565, 20.6479, 3.8038)
Luminance0.2065 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878016 #161D87
analogous
#874716 #878016 #558716
triadic
#878016 #168780 #801687
tetradic
#878016 #168747 #161D87 #871655
square
#878016 #168747 #161D87 #871655
split-complementary
#878016 #165587 #471687
monochromatic
#1E1C05 #524E0D #878016 #BCB21F #DFD439

Accessibility & contrast

On white

4.09
#878016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#878016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878016
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878016#FFFFFF#000000##000000
##8780161.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8F7F20
Tritanopia (blue-blind)
#92776D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #878016;
/* rgb */ color: rgb(135, 128, 22);
/* oklch */ color: oklch(58.8% 0.118 105.4);
Tailwind
colors: {
  custom: {
    50: '#aea45f',
    500: '#878016',
    950: '#000000',
  },
}
SCSS
$custom: #878016;
$custom-light: #aea45f;
$custom-dark: #000000;
JSON
{
  "hex": "#878016",
  "rgb": {
    "r": 135,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 56.283,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58792,
    "c": 0.11823,
    "h": 105.4
  },
  "luminance": 0.20647
}

Semantic roles & 50–950 ramp

primary
#878016
secondary
#3E45BB
accent
#44EF39
background
#FBFAF5
surface
#F6F4EA
border
#D0CEC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #878016

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

Preview Lab → · Contrast checker → · Palette generator →

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