#878C1F#878C1F

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

Color values

HEX#878C1F
RGBrgb(135, 140, 31)
HSLhsl(63, 64%, 34%)
HSVhsv(63, 78%, 55%)
CMYKcmyk(3.6%, 0%, 77.9%, 45.1%)
CIE-LABlab(56.09, -15.26, 53.18)
CIE-LCHlch(56.09, 55.33, 106.01°)
OKLaboklab(61.63% -0.0477 0.1165)
OKLCHoklch(61.63% 0.126 112.3)
XYZxyz(19.6177, 24.0065, 4.8964)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878C1F #241F8C
analogous
#8C5A1F #878C1F #508C1F
triadic
#878C1F #1F878C #8C1F87
tetradic
#878C1F #1F8C5A #241F8C #8C1F50
square
#878C1F #1F8C5A #241F8C #8C1F50
split-complementary
#878C1F #1F508C #5A1F8C
monochromatic
#262809 #575A14 #878C1F #B7BE2A #D1D84E

Accessibility & contrast

On white

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

On black

5.80
#878C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878C1F
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878C1F#FFFFFF#000000##000000
##878C1F1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#978828
Tritanopia (blue-blind)
#918378
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878c1f;
/* rgb */ color: rgb(135, 140, 31);
/* oklch */ color: oklch(61.6% 0.126 112.3);
Tailwind
colors: {
  custom: {
    50: '#adad64',
    500: '#878c1f',
    950: '#000000',
  },
}
SCSS
$custom: #878c1f;
$custom-light: #adad64;
$custom-dark: #000000;
JSON
{
  "hex": "#878c1f",
  "rgb": {
    "r": 135,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 62.752,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61627,
    "c": 0.12584,
    "h": 112.3
  },
  "luminance": 0.24006
}

Semantic roles & 50–950 ramp

primary
#878C1F
secondary
#514CBB
accent
#41E749
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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