#878D13#878D13

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

Color values

HEX#878D13
RGBrgb(135, 141, 19)
HSLhsl(63, 76%, 31%)
HSVhsv(63, 87%, 55%)
CMYKcmyk(4.3%, 0%, 86.5%, 44.7%)
CIE-LABlab(56.34, -16.22, 56.81)
CIE-LCHlch(56.34, 59.08, 105.93°)
OKLaboklab(61.8% -0.0512 0.1221)
OKLCHoklch(61.8% 0.132 112.8)
XYZxyz(19.6348, 24.2481, 4.2620)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D13 #19138D
analogous
#8D5613 #878D13 #4A8D13
triadic
#878D13 #13878D #8D1387
tetradic
#878D13 #138D56 #19138D #8D134A
square
#878D13 #138D56 #19138D #8D134A
split-complementary
#878D13 #134A8D #56138D
monochromatic
#202104 #53570C #878D13 #BBC31A #DBE436

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878D13#FFFFFF#000000##000000
##878D131.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)
#998821
Tritanopia (blue-blind)
#918478
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #878d13;
/* rgb */ color: rgb(135, 141, 19);
/* oklch */ color: oklch(61.8% 0.132 112.8);
Tailwind
colors: {
  custom: {
    50: '#aeae60',
    500: '#878d13',
    950: '#000000',
  },
}
SCSS
$custom: #878d13;
$custom-light: #aeae60;
$custom-dark: #000000;
JSON
{
  "hex": "#878d13",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 19
  },
  "hsl": {
    "h": 62.951,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.61804,
    "c": 0.13237,
    "h": 112.8
  },
  "luminance": 0.24248
}

Semantic roles & 50–950 ramp

primary
#878D13
secondary
#413BC1
accent
#35F33E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878D13

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

Preview Lab → · Contrast checker → · Palette generator →

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