#878B1E#878B1E

#878B1E is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.4% C 0.125 H 111.7°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#878B1E
RGBrgb(135, 139, 30)
HSLhsl(62, 64%, 33%)
HSVhsv(62, 78%, 55%)
CMYKcmyk(2.9%, 0%, 78.4%, 45.5%)
CIE-LABlab(55.80, -14.78, 53.24)
CIE-LCHlch(55.80, 55.25, 105.51°)
OKLaboklab(61.39% -0.0464 0.1164)
OKLCHoklch(61.39% 0.125 111.7)
XYZxyz(19.4593, 23.7104, 4.7795)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878B1E #221E8B
analogous
#8B581E #878B1E #508B1E
triadic
#878B1E #1E878B #8B1E87
tetradic
#878B1E #1E8B58 #221E8B #8B1E50
square
#878B1E #1E8B58 #221E8B #8B1E50
split-complementary
#878B1E #1E508B #581E8B
monochromatic
#252608 #565913 #878B1E #B8BD29 #D3D84B

Accessibility & contrast

On white

3.66
#878B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#878B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878B1E
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878B1E#FFFFFF#000000##000000
##878B1E1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968401
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#918277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878b1e;
/* rgb */ color: rgb(135, 139, 30);
/* oklch */ color: oklch(61.4% 0.125 111.7);
Tailwind
colors: {
  custom: {
    50: '#adac64',
    500: '#878b1e',
    950: '#000000',
  },
}
SCSS
$custom: #878b1e;
$custom-light: #adac64;
$custom-dark: #000000;
JSON
{
  "hex": "#878b1e",
  "rgb": {
    "r": 135,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 62.202,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61387,
    "c": 0.12531,
    "h": 111.7
  },
  "luminance": 0.2371
}

Semantic roles & 50–950 ramp

primary
#878B1E
secondary
#4E4ABB
accent
#40E746
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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