#878D1F#878D1F

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

Color values

HEX#878D1F
RGBrgb(135, 141, 31)
HSLhsl(63, 64%, 34%)
HSVhsv(63, 78%, 55%)
CMYKcmyk(4.3%, 0%, 78%, 44.7%)
CIE-LABlab(56.39, -15.79, 53.45)
CIE-LCHlch(56.39, 55.73, 106.46°)
OKLaboklab(61.86% -0.0491 0.117)
OKLCHoklch(61.86% 0.127 112.8)
XYZxyz(19.7645, 24.3000, 4.9453)
Luminance0.2430 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D1F #251F8D
analogous
#8D5C1F #878D1F #508D1F
triadic
#878D1F #1F878D #8D1F87
tetradic
#878D1F #1F8D5C #251F8D #8D1F50
square
#878D1F #1F8D5C #251F8D #8D1F50
split-complementary
#878D1F #1F508D #5C1F8D
monochromatic
#272909 #575B14 #878D1F #B7BF2A #D1D84E

Accessibility & contrast

On white

3.58
#878D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#878D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878D1F
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878D1F#FFFFFF#000000##000000
##878D1F1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#918478
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #878d1f;
/* rgb */ color: rgb(135, 141, 31);
/* oklch */ color: oklch(61.9% 0.127 112.8);
Tailwind
colors: {
  custom: {
    50: '#adae65',
    500: '#878d1f',
    950: '#000000',
  },
}
SCSS
$custom: #878d1f;
$custom-light: #adae65;
$custom-dark: #000000;
JSON
{
  "hex": "#878d1f",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 63.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61862,
    "c": 0.12693,
    "h": 112.8
  },
  "luminance": 0.243
}

Semantic roles & 50–950 ramp

primary
#878D1F
secondary
#534DBB
accent
#41E74A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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