#878C1E#878C1E

#878C1E 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#878C1E
RGBrgb(135, 140, 30)
HSLhsl(63, 65%, 33%)
HSVhsv(63, 79%, 55%)
CMYKcmyk(3.6%, 0%, 78.6%, 45.1%)
CIE-LABlab(56.09, -15.31, 53.50)
CIE-LCHlch(56.09, 55.65, 105.96°)
OKLaboklab(61.62% -0.0479 0.117)
OKLCHoklch(61.62% 0.126 112.3)
XYZxyz(19.6048, 24.0013, 4.8280)
Luminance0.2400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878C1E #231E8C
analogous
#8C5A1E #878C1E #508C1E
triadic
#878C1E #1E878C #8C1E87
tetradic
#878C1E #1E8C5A #231E8C #8C1E50
square
#878C1E #1E8C5A #231E8C #8C1E50
split-complementary
#878C1E #1E508C #5A1E8C
monochromatic
#262708 #565A13 #878C1E #B8BE29 #D2D94C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878C1E#FFFFFF#000000##000000
##878C1E1.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)
#978500
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#918378
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878c1e;
/* rgb */ color: rgb(135, 140, 30);
/* oklch */ color: oklch(61.6% 0.126 112.3);
Tailwind
colors: {
  custom: {
    50: '#adad64',
    500: '#878c1e',
    950: '#000000',
  },
}
SCSS
$custom: #878c1e;
$custom-light: #adad64;
$custom-dark: #000000;
JSON
{
  "hex": "#878c1e",
  "rgb": {
    "r": 135,
    "g": 140,
    "b": 30
  },
  "hsl": {
    "h": 62.727,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61621,
    "c": 0.12638,
    "h": 112.3
  },
  "luminance": 0.24001
}

Semantic roles & 50–950 ramp

primary
#878C1E
secondary
#504BBB
accent
#40E848
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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