#878B1D#878B1D

#878B1D is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.4% C 0.126 H 111.7°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#878B1D
RGBrgb(135, 139, 29)
HSLhsl(62, 65%, 33%)
HSVhsv(62, 79%, 55%)
CMYKcmyk(2.9%, 0%, 79.1%, 45.5%)
CIE-LABlab(55.79, -14.82, 53.55)
CIE-LCHlch(55.79, 55.57, 105.47°)
OKLaboklab(61.38% -0.0466 0.1169)
OKLCHoklch(61.38% 0.126 111.7)
XYZxyz(19.4467, 23.7053, 4.7133)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878B1D #211D8B
analogous
#8B581D #878B1D #508B1D
triadic
#878B1D #1D878B #8B1D87
tetradic
#878B1D #1D8B58 #211D8B #8B1D50
square
#878B1D #1D8B58 #211D8B #8B1D50
split-complementary
#878B1D #1D508B #581D8B
monochromatic
#252608 #565812 #878B1D #B8BE28 #D4D949

Accessibility & contrast

On white

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

On black

5.74
#878B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878B1D
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878B1D#FFFFFF#000000##000000
##878B1D1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #878b1d;
/* rgb */ color: rgb(135, 139, 29);
/* oklch */ color: oklch(61.4% 0.126 111.7);
Tailwind
colors: {
  custom: {
    50: '#adac63',
    500: '#878b1d',
    950: '#000000',
  },
}
SCSS
$custom: #878b1d;
$custom-light: #adac63;
$custom-dark: #000000;
JSON
{
  "hex": "#878b1d",
  "rgb": {
    "r": 135,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 62.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.61382,
    "c": 0.12583,
    "h": 111.7
  },
  "luminance": 0.23705
}

Semantic roles & 50–950 ramp

primary
#878B1D
secondary
#4D49BB
accent
#3FE846
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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