#878B1B#878B1B

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

Color values

HEX#878B1B
RGBrgb(135, 139, 27)
HSLhsl(62, 67%, 33%)
HSVhsv(62, 81%, 55%)
CMYKcmyk(2.9%, 0%, 80.6%, 45.5%)
CIE-LABlab(55.78, -14.90, 54.17)
CIE-LCHlch(55.78, 56.18, 105.38°)
OKLaboklab(61.37% -0.047 0.1178)
OKLCHoklch(61.37% 0.127 111.7)
XYZxyz(19.4228, 23.6958, 4.5873)
Luminance0.2369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878B1B #1F1B8B
analogous
#8B571B #878B1B #4F8B1B
triadic
#878B1B #1B878B #8B1B87
tetradic
#878B1B #1B8B57 #1F1B8B #8B1B4F
square
#878B1B #1B8B57 #1F1B8B #8B1B4F
split-complementary
#878B1B #1B4F8B #571B8B
monochromatic
#232507 #555811 #878B1B #B9BE25 #D6DB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878B1B#FFFFFF#000000##000000
##878B1B1.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)
#978725
Tritanopia (blue-blind)
#918277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878b1b;
/* rgb */ color: rgb(135, 139, 27);
/* oklch */ color: oklch(61.4% 0.127 111.7);
Tailwind
colors: {
  custom: {
    50: '#adac63',
    500: '#878b1b',
    950: '#000000',
  },
}
SCSS
$custom: #878b1b;
$custom-light: #adac63;
$custom-dark: #000000;
JSON
{
  "hex": "#878b1b",
  "rgb": {
    "r": 135,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 62.143,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61371,
    "c": 0.12685,
    "h": 111.7
  },
  "luminance": 0.23695
}

Semantic roles & 50–950 ramp

primary
#878B1B
secondary
#4A45BC
accent
#3DEA44
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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