#878D14#878D14

#878D14 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#878D14
RGBrgb(135, 141, 20)
HSLhsl(63, 75%, 32%)
HSVhsv(63, 86%, 55%)
CMYKcmyk(4.3%, 0%, 85.8%, 44.7%)
CIE-LABlab(56.34, -16.19, 56.57)
CIE-LCHlch(56.34, 58.84, 105.97°)
OKLaboklab(61.81% -0.0511 0.1217)
OKLCHoklch(61.81% 0.132 112.8)
XYZxyz(19.6435, 24.2516, 4.3079)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D14 #1A148D
analogous
#8D5714 #878D14 #4B8D14
triadic
#878D14 #14878D #8D1487
tetradic
#878D14 #148D57 #1A148D #8D144B
square
#878D14 #148D57 #1A148D #8D144B
split-complementary
#878D14 #144B8D #57148D
monochromatic
#202205 #54570C #878D14 #BAC31C #DAE339

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #878d14;
/* rgb */ color: rgb(135, 141, 20);
/* oklch */ color: oklch(61.8% 0.132 112.8);
Tailwind
colors: {
  custom: {
    50: '#aeae60',
    500: '#878d14',
    950: '#000000',
  },
}
SCSS
$custom: #878d14;
$custom-light: #aeae60;
$custom-dark: #000000;
JSON
{
  "hex": "#878d14",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 20
  },
  "hsl": {
    "h": 62.975,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61808,
    "c": 0.132,
    "h": 112.8
  },
  "luminance": 0.24251
}

Semantic roles & 50–950 ramp

primary
#878D14
secondary
#423CC1
accent
#36F23F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878D14

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

Preview Lab → · Contrast checker → · Palette generator →

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