#878D19#878D19

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

Color values

HEX#878D19
RGBrgb(135, 141, 25)
HSLhsl(63, 70%, 33%)
HSVhsv(63, 82%, 55%)
CMYKcmyk(4.3%, 0%, 82.3%, 44.7%)
CIE-LABlab(56.36, -16.03, 55.27)
CIE-LCHlch(56.36, 57.54, 106.17°)
OKLaboklab(61.83% -0.0503 0.1198)
OKLCHoklch(61.83% 0.13 112.8)
XYZxyz(19.6927, 24.2713, 4.5670)
Luminance0.2427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D19 #1F198D
analogous
#8D5919 #878D19 #4D8D19
triadic
#878D19 #19878D #8D1987
tetradic
#878D19 #198D59 #1F198D #8D194D
square
#878D19 #198D59 #1F198D #8D194D
split-complementary
#878D19 #194D8D #59198D
monochromatic
#232507 #555910 #878D19 #B9C122 #D6DE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #878d19;
/* rgb */ color: rgb(135, 141, 25);
/* oklch */ color: oklch(61.8% 0.130 112.8);
Tailwind
colors: {
  custom: {
    50: '#aeae62',
    500: '#878d19',
    950: '#000000',
  },
}
SCSS
$custom: #878d19;
$custom-light: #aeae62;
$custom-dark: #000000;
JSON
{
  "hex": "#878d19",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 25
  },
  "hsl": {
    "h": 63.103,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6183,
    "c": 0.12992,
    "h": 112.8
  },
  "luminance": 0.24271
}

Semantic roles & 50–950 ramp

primary
#878D19
secondary
#4A43BF
accent
#3BED44
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878D19

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

Preview Lab → · Contrast checker → · Palette generator →

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