#878C14#878C14

#878C14 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.6% C 0.131 H 112.3°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#878C14
RGBrgb(135, 140, 20)
HSLhsl(63, 75%, 31%)
HSVhsv(63, 86%, 55%)
CMYKcmyk(3.6%, 0%, 85.7%, 45.1%)
CIE-LABlab(56.05, -15.66, 56.33)
CIE-LCHlch(56.05, 58.46, 105.54°)
OKLaboklab(61.57% -0.0496 0.1212)
OKLCHoklch(61.57% 0.131 112.3)
XYZxyz(19.4967, 23.9581, 4.2590)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878C14 #19148C
analogous
#8C5514 #878C14 #4B8C14
triadic
#878C14 #14878C #8C1487
tetradic
#878C14 #148C55 #19148C #8C144B
square
#878C14 #148C55 #19148C #8C144B
split-complementary
#878C14 #144B8C #55148C
monochromatic
#202105 #53560C #878C14 #BBC21C #DBE338

Accessibility & contrast

On white

3.63
#878C14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#878C14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878C14
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878C14#FFFFFF#000000##000000
##878C141.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#988821
Tritanopia (blue-blind)
#918377
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878c14;
/* rgb */ color: rgb(135, 140, 20);
/* oklch */ color: oklch(61.6% 0.131 112.3);
Tailwind
colors: {
  custom: {
    50: '#aead60',
    500: '#878c14',
    950: '#000000',
  },
}
SCSS
$custom: #878c14;
$custom-light: #aead60;
$custom-dark: #000000;
JSON
{
  "hex": "#878c14",
  "rgb": {
    "r": 135,
    "g": 140,
    "b": 20
  },
  "hsl": {
    "h": 62.5,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.61573,
    "c": 0.13095,
    "h": 112.3
  },
  "luminance": 0.23958
}

Semantic roles & 50–950 ramp

primary
#878C14
secondary
#413CC0
accent
#36F23E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878C14

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

Preview Lab → · Contrast checker → · Palette generator →

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