#878C17#878C17

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

Color values

HEX#878C17
RGBrgb(135, 140, 23)
HSLhsl(63, 72%, 32%)
HSVhsv(63, 84%, 55%)
CMYKcmyk(3.6%, 0%, 83.6%, 45.1%)
CIE-LABlab(56.06, -15.57, 55.56)
CIE-LCHlch(56.06, 57.70, 105.65°)
OKLaboklab(61.59% -0.0492 0.1201)
OKLCHoklch(61.59% 0.13 112.3)
XYZxyz(19.5251, 23.9694, 4.4085)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878C17 #1C178C
analogous
#8C5717 #878C17 #4D8C17
triadic
#878C17 #17878C #8C1787
tetradic
#878C17 #178C57 #1C178C #8C174D
square
#878C17 #178C57 #1C178C #8C174D
split-complementary
#878C17 #174D8C #57178C
monochromatic
#222306 #54570E #878C17 #BAC120 #D8DF3E

Accessibility & contrast

On white

3.62
#878C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##878C17#FFFFFF#000000##000000
##878C171.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #878c17;
/* rgb */ color: rgb(135, 140, 23);
/* oklch */ color: oklch(61.6% 0.130 112.3);
Tailwind
colors: {
  custom: {
    50: '#aead61',
    500: '#878c17',
    950: '#000000',
  },
}
SCSS
$custom: #878c17;
$custom-light: #aead61;
$custom-dark: #000000;
JSON
{
  "hex": "#878c17",
  "rgb": {
    "r": 135,
    "g": 140,
    "b": 23
  },
  "hsl": {
    "h": 62.564,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61586,
    "c": 0.12973,
    "h": 112.3
  },
  "luminance": 0.23969
}

Semantic roles & 50–950 ramp

primary
#878C17
secondary
#453FBF
accent
#39EF41
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878C17

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

Preview Lab → · Contrast checker → · Palette generator →

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