#878D17#878D17

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

Color values

HEX#878D17
RGBrgb(135, 141, 23)
HSLhsl(63, 72%, 32%)
HSVhsv(63, 84%, 55%)
CMYKcmyk(4.3%, 0%, 83.7%, 44.7%)
CIE-LABlab(56.35, -16.09, 55.81)
CIE-LCHlch(56.35, 58.09, 106.09°)
OKLaboklab(61.82% -0.0506 0.1206)
OKLCHoklch(61.82% 0.131 112.8)
XYZxyz(19.6719, 24.2630, 4.4574)
Luminance0.2426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D17 #1D178D
analogous
#8D5817 #878D17 #4C8D17
triadic
#878D17 #17878D #8D1787
tetradic
#878D17 #178D58 #1D178D #8D174C
square
#878D17 #178D58 #1D178D #8D174C
split-complementary
#878D17 #174C8D #58178D
monochromatic
#222406 #55580E #878D17 #B9C220 #D7E03F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #878d17;
/* rgb */ color: rgb(135, 141, 23);
/* oklch */ color: oklch(61.8% 0.131 112.8);
Tailwind
colors: {
  custom: {
    50: '#aeae61',
    500: '#878d17',
    950: '#000000',
  },
}
SCSS
$custom: #878d17;
$custom-light: #aeae61;
$custom-dark: #000000;
JSON
{
  "hex": "#878d17",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 63.051,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.6182,
    "c": 0.1308,
    "h": 112.8
  },
  "luminance": 0.24263
}

Semantic roles & 50–950 ramp

primary
#878D17
secondary
#4640C0
accent
#39EF42
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878D17

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

Preview Lab → · Contrast checker → · Palette generator →

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