#878C15#878C15

#878C15 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#878C15
RGBrgb(135, 140, 21)
HSLhsl(63, 74%, 32%)
HSVhsv(63, 85%, 55%)
CMYKcmyk(3.6%, 0%, 85%, 45.1%)
CIE-LABlab(56.05, -15.63, 56.08)
CIE-LCHlch(56.05, 58.22, 105.58°)
OKLaboklab(61.58% -0.0495 0.1208)
OKLCHoklch(61.58% 0.131 112.3)
XYZxyz(19.5058, 23.9617, 4.3069)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878C15 #1A158C
analogous
#8C5615 #878C15 #4C8C15
triadic
#878C15 #15878C #8C1587
tetradic
#878C15 #158C56 #1A158C #8C154C
square
#878C15 #158C56 #1A158C #8C154C
split-complementary
#878C15 #154C8C #56158C
monochromatic
#202205 #54570D #878C15 #BAC11D #DAE13A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878C15#FFFFFF#000000##000000
##878C151.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)
#988822
Tritanopia (blue-blind)
#918377
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878c15;
/* rgb */ color: rgb(135, 140, 21);
/* oklch */ color: oklch(61.6% 0.131 112.3);
Tailwind
colors: {
  custom: {
    50: '#aead60',
    500: '#878c15',
    950: '#000000',
  },
}
SCSS
$custom: #878c15;
$custom-light: #aead60;
$custom-dark: #000000;
JSON
{
  "hex": "#878c15",
  "rgb": {
    "r": 135,
    "g": 140,
    "b": 21
  },
  "hsl": {
    "h": 62.521,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61577,
    "c": 0.13056,
    "h": 112.3
  },
  "luminance": 0.23961
}

Semantic roles & 50–950 ramp

primary
#878C15
secondary
#423DC0
accent
#37F13F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878C15

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

Preview Lab → · Contrast checker → · Palette generator →

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