#878D1D#878D1D

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

Color values

HEX#878D1D
RGBrgb(135, 141, 29)
HSLhsl(63, 66%, 33%)
HSVhsv(63, 79%, 55%)
CMYKcmyk(4.3%, 0%, 79.4%, 44.7%)
CIE-LABlab(56.38, -15.87, 54.08)
CIE-LCHlch(56.38, 56.36, 106.36°)
OKLaboklab(61.85% -0.0495 0.118)
OKLCHoklch(61.85% 0.128 112.8)
XYZxyz(19.7390, 24.2898, 4.8108)
Luminance0.2429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D1D #231D8D
analogous
#8D5B1D #878D1D #4F8D1D
triadic
#878D1D #1D878D #8D1D87
tetradic
#878D1D #1D8D5B #231D8D #8D1D4F
square
#878D1D #1D8D5B #231D8D #8D1D4F
split-complementary
#878D1D #1D4F8D #5B1D8D
monochromatic
#262708 #565A13 #878D1D #B8C027 #D2DA4B

Accessibility & contrast

On white

3.58
#878D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#878D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878D1D
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878D1D#FFFFFF#000000##000000
##878D1D1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #878d1d;
/* rgb */ color: rgb(135, 141, 29);
/* oklch */ color: oklch(61.9% 0.128 112.8);
Tailwind
colors: {
  custom: {
    50: '#adae64',
    500: '#878d1d',
    950: '#000000',
  },
}
SCSS
$custom: #878d1d;
$custom-light: #adae64;
$custom-dark: #000000;
JSON
{
  "hex": "#878d1d",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 63.214,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.6185,
    "c": 0.12799,
    "h": 112.8
  },
  "luminance": 0.24289
}

Semantic roles & 50–950 ramp

primary
#878D1D
secondary
#504ABC
accent
#3FE948
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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