#878B16#878B16

#878B16 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.3% C 0.129 H 111.8°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#878B16
RGBrgb(135, 139, 22)
HSLhsl(62, 73%, 32%)
HSVhsv(62, 84%, 55%)
CMYKcmyk(2.9%, 0%, 84.2%, 45.5%)
CIE-LABlab(55.76, -15.07, 55.57)
CIE-LCHlch(55.76, 57.58, 105.18°)
OKLaboklab(61.35% -0.0479 0.1199)
OKLCHoklch(61.35% 0.129 111.8)
XYZxyz(19.3698, 23.6746, 4.3082)
Luminance0.2367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878B16 #1A168B
analogous
#8B5516 #878B16 #4D8B16
triadic
#878B16 #16878B #8B1687
tetradic
#878B16 #168B55 #1A168B #8B164D
square
#878B16 #168B55 #1A168B #8B164D
split-complementary
#878B16 #164D8B #55168B
monochromatic
#202105 #54560E #878B16 #BAC01E #DAE03B

Accessibility & contrast

On white

3.66
#878B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#878B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878B16
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878B16#FFFFFF#000000##000000
##878B161.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#978722
Tritanopia (blue-blind)
#918276
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878b16;
/* rgb */ color: rgb(135, 139, 22);
/* oklch */ color: oklch(61.3% 0.129 111.8);
Tailwind
colors: {
  custom: {
    50: '#aeac61',
    500: '#878b16',
    950: '#000000',
  },
}
SCSS
$custom: #878b16;
$custom-light: #aeac61;
$custom-dark: #000000;
JSON
{
  "hex": "#878b16",
  "rgb": {
    "r": 135,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 62.051,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61347,
    "c": 0.12911,
    "h": 111.8
  },
  "luminance": 0.23674
}

Semantic roles & 50–950 ramp

primary
#878B16
secondary
#423EBF
accent
#38EF3F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878B16

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

Preview Lab → · Contrast checker → · Palette generator →

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