#878D16#878D16

#878D16 is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.8% C 0.131 H 112.8°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#878D16
RGBrgb(135, 141, 22)
HSLhsl(63, 73%, 32%)
HSVhsv(63, 84%, 55%)
CMYKcmyk(4.3%, 0%, 84.4%, 44.7%)
CIE-LABlab(56.35, -16.13, 56.07)
CIE-LCHlch(56.35, 58.35, 106.05°)
OKLaboklab(61.82% -0.0508 0.121)
OKLCHoklch(61.82% 0.131 112.8)
XYZxyz(19.6620, 24.2590, 4.4056)
Luminance0.2426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D16 #1C168D
analogous
#8D5816 #878D16 #4C8D16
triadic
#878D16 #16878D #8D1687
tetradic
#878D16 #168D58 #1C168D #8D164C
square
#878D16 #168D58 #1C168D #8D164C
split-complementary
#878D16 #164C8D #58168D
monochromatic
#222305 #54580E #878D16 #BAC21E #D8E13D

Accessibility & contrast

On white

3.59
#878D16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#878D16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878D16
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878D16#FFFFFF#000000##000000
##878D161.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#998822
Tritanopia (blue-blind)
#918478
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #878d16;
/* rgb */ color: rgb(135, 141, 22);
/* oklch */ color: oklch(61.8% 0.131 112.8);
Tailwind
colors: {
  custom: {
    50: '#aeae61',
    500: '#878d16',
    950: '#000000',
  },
}
SCSS
$custom: #878d16;
$custom-light: #aeae61;
$custom-dark: #000000;
JSON
{
  "hex": "#878d16",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 63.025,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61816,
    "c": 0.13121,
    "h": 112.8
  },
  "luminance": 0.24259
}

Semantic roles & 50–950 ramp

primary
#878D16
secondary
#453EC1
accent
#38F041
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878D16

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

Preview Lab → · Contrast checker → · Palette generator →

#878D16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva