#878316#878316

#878316 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.5% C 0.121 H 107.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#878316
RGBrgb(135, 131, 22)
HSLhsl(58, 72%, 31%)
HSVhsv(58, 84%, 53%)
CMYKcmyk(0%, 3%, 83.7%, 47.1%)
CIE-LABlab(53.43, -10.79, 53.58)
CIE-LCHlch(53.43, 54.65, 101.39°)
OKLaboklab(59.48% -0.036 0.1156)
OKLCHoklch(59.48% 0.121 107.3)
XYZxyz(18.2536, 21.4421, 3.9361)
Luminance0.2144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878316 #161A87
analogous
#874A16 #878316 #528716
triadic
#878316 #168783 #831687
tetradic
#878316 #16874A #161A87 #871652
square
#878316 #16874A #161A87 #871652
split-complementary
#878316 #165287 #4A1687
monochromatic
#1E1D05 #52500D #878316 #BCB61F #DFD939

Accessibility & contrast

On white

3.97
#878316 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#878316 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878316
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878316#FFFFFF#000000##000000
##8783161.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#918120
Tritanopia (blue-blind)
#927A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #878316;
/* rgb */ color: rgb(135, 131, 22);
/* oklch */ color: oklch(59.5% 0.121 107.3);
Tailwind
colors: {
  custom: {
    50: '#aea65f',
    500: '#878316',
    950: '#000000',
  },
}
SCSS
$custom: #878316;
$custom-light: #aea65f;
$custom-dark: #000000;
JSON
{
  "hex": "#878316",
  "rgb": {
    "r": 135,
    "g": 131,
    "b": 22
  },
  "hsl": {
    "h": 57.876,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59484,
    "c": 0.12106,
    "h": 107.3
  },
  "luminance": 0.21441
}

Semantic roles & 50–950 ramp

primary
#878316
secondary
#3E42BB
accent
#40EF39
background
#FBFAF5
surface
#F6F4EA
border
#D0CEC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #878316

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

Preview Lab → · Contrast checker → · Palette generator →

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