#878720#878720

#878720 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.5% C 0.120 H 109.5°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#878720
RGBrgb(135, 135, 32)
HSLhsl(60, 62%, 33%)
HSVhsv(60, 76%, 53%)
CMYKcmyk(0%, 0%, 76.3%, 47.1%)
CIE-LABlab(54.64, -12.56, 51.49)
CIE-LCHlch(54.64, 53.00, 103.71°)
OKLaboklab(60.47% -0.0401 0.1131)
OKLCHoklch(60.47% 0.12 109.5)
XYZxyz(18.9171, 22.5837, 4.7288)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878720 #202087
analogous
#875320 #878720 #538720
triadic
#878720 #208787 #872087
tetradic
#878720 #208753 #202087 #872053
square
#878720 #208753 #202087 #872053
split-complementary
#878720 #205387 #532087
monochromatic
#242409 #565614 #878720 #B8B82C #D5D54D

Accessibility & contrast

On white

3.81
#878720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#878720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878720
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878720#FFFFFF#000000##000000
##8787201.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928109
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#917E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #878720;
/* rgb */ color: rgb(135, 135, 32);
/* oklch */ color: oklch(60.5% 0.120 109.5);
Tailwind
colors: {
  custom: {
    50: '#ada964',
    500: '#878720',
    950: '#000000',
  },
}
SCSS
$custom: #878720;
$custom-light: #ada964;
$custom-dark: #000000;
JSON
{
  "hex": "#878720",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 60,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60466,
    "c": 0.11997,
    "h": 109.5
  },
  "luminance": 0.22583
}

Semantic roles & 50–950 ramp

primary
#878720
secondary
#4B4BB8
accent
#43E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878720

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

Preview Lab → · Contrast checker → · Palette generator →

#878720 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva