#878E1B#878E1B

#878E1B is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.1% C 0.130 H 113.3°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#878E1B
RGBrgb(135, 142, 27)
HSLhsl(64, 68%, 33%)
HSVhsv(64, 81%, 56%)
CMYKcmyk(4.9%, 0%, 81%, 44.3%)
CIE-LABlab(56.66, -16.48, 54.95)
CIE-LCHlch(56.66, 57.37, 106.69°)
OKLaboklab(62.07% -0.0514 0.1195)
OKLCHoklch(62.07% 0.13 113.3)
XYZxyz(19.8632, 24.5765, 4.7341)
Luminance0.2458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E1B #221B8E
analogous
#8E5B1B #878E1B #4D8E1B
triadic
#878E1B #1B878E #8E1B87
tetradic
#878E1B #1B8E5B #221B8E #8E1B4D
square
#878E1B #1B8E5B #221B8E #8E1B4D
split-complementary
#878E1B #1B4D8E #5B1B8E
monochromatic
#252707 #565B11 #878E1B #B8C125 #D3DC47

Accessibility & contrast

On white

3.55
#878E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#878E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878E1B
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878E1B#FFFFFF#000000##000000
##878E1B1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#918579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e1b;
/* rgb */ color: rgb(135, 142, 27);
/* oklch */ color: oklch(62.1% 0.130 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae63',
    500: '#878e1b',
    950: '#000000',
  },
}
SCSS
$custom: #878e1b;
$custom-light: #adae63;
$custom-dark: #000000;
JSON
{
  "hex": "#878e1b",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 63.652,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.62074,
    "c": 0.13006,
    "h": 113.3
  },
  "luminance": 0.24576
}

Semantic roles & 50–950 ramp

primary
#878E1B
secondary
#4E47BE
accent
#3DEB47
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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