#878D15#878D15

#878D15 is a mid, vivid yellow. Relative luminance 0.243; 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#878D15
RGBrgb(135, 141, 21)
HSLhsl(63, 74%, 32%)
HSVhsv(63, 85%, 55%)
CMYKcmyk(4.3%, 0%, 85.1%, 44.7%)
CIE-LABlab(56.34, -16.16, 56.33)
CIE-LCHlch(56.34, 58.60, 106.01°)
OKLaboklab(61.81% -0.0509 0.1214)
OKLCHoklch(61.81% 0.132 112.8)
XYZxyz(19.6526, 24.2553, 4.3558)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D15 #1B158D
analogous
#8D5715 #878D15 #4B8D15
triadic
#878D15 #15878D #8D1587
tetradic
#878D15 #158D57 #1B158D #8D154B
square
#878D15 #158D57 #1B158D #8D154B
split-complementary
#878D15 #154B8D #57158D
monochromatic
#212205 #54580D #878D15 #BAC21D #D9E23B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #878d15;
/* rgb */ color: rgb(135, 141, 21);
/* oklch */ color: oklch(61.8% 0.132 112.8);
Tailwind
colors: {
  custom: {
    50: '#aeae61',
    500: '#878d15',
    950: '#000000',
  },
}
SCSS
$custom: #878d15;
$custom-light: #aeae61;
$custom-dark: #000000;
JSON
{
  "hex": "#878d15",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 63,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61812,
    "c": 0.13161,
    "h": 112.8
  },
  "luminance": 0.24255
}

Semantic roles & 50–950 ramp

primary
#878D15
secondary
#443DC1
accent
#37F140
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878D15

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

Preview Lab → · Contrast checker → · Palette generator →

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