#878A1D#878A1D

#878A1D is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.1% C 0.125 H 111.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#878A1D
RGBrgb(135, 138, 29)
HSLhsl(62, 65%, 33%)
HSVhsv(62, 79%, 54%)
CMYKcmyk(2.2%, 0%, 79%, 45.9%)
CIE-LABlab(55.50, -14.29, 53.29)
CIE-LCHlch(55.50, 55.17, 105.01°)
OKLaboklab(61.15% -0.0451 0.1163)
OKLCHoklch(61.15% 0.125 111.2)
XYZxyz(19.3026, 23.4171, 4.6653)
Luminance0.2342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878A1D #201D8A
analogous
#8A561D #878A1D #518A1D
triadic
#878A1D #1D878A #8A1D87
tetradic
#878A1D #1D8A56 #201D8A #8A1D51
square
#878A1D #1D8A56 #201D8A #8A1D51
split-complementary
#878A1D #1D518A #561D8A
monochromatic
#242508 #565712 #878A1D #B8BD28 #D5D949

Accessibility & contrast

On white

3.69
#878A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#878A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878A1D
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878A1D#FFFFFF#000000##000000
##878A1D1.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#918176
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #878a1d;
/* rgb */ color: rgb(135, 138, 29);
/* oklch */ color: oklch(61.1% 0.125 111.2);
Tailwind
colors: {
  custom: {
    50: '#adab63',
    500: '#878a1d',
    950: '#000000',
  },
}
SCSS
$custom: #878a1d;
$custom-light: #adab63;
$custom-dark: #000000;
JSON
{
  "hex": "#878a1d",
  "rgb": {
    "r": 135,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 61.651,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61148,
    "c": 0.12478,
    "h": 111.2
  },
  "luminance": 0.23417
}

Semantic roles & 50–950 ramp

primary
#878A1D
secondary
#4B48BB
accent
#40E844
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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