#878817#878817

#878817 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.7% C 0.126 H 110.2°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#878817
RGBrgb(135, 136, 23)
HSLhsl(61, 71%, 31%)
HSVhsv(61, 83%, 53%)
CMYKcmyk(0.7%, 0%, 83.1%, 46.7%)
CIE-LABlab(54.89, -13.45, 54.55)
CIE-LCHlch(54.89, 56.19, 103.85°)
OKLaboklab(60.65% -0.0433 0.1179)
OKLCHoklch(60.65% 0.126 110.2)
XYZxyz(18.9512, 22.8216, 4.2172)
Luminance0.2282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878817 #181788
analogous
#885017 #878817 #4E8817
triadic
#878817 #178788 #881787
tetradic
#878817 #178850 #181788 #88174E
square
#878817 #178850 #181788 #88174E
split-complementary
#878817 #174E88 #501788
monochromatic
#1F1F05 #53540E #878817 #BBBC20 #DCDE3B

Accessibility & contrast

On white

3.77
#878817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#878817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878817
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878817#FFFFFF#000000##000000
##8788171.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#958522
Tritanopia (blue-blind)
#917F74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #878817;
/* rgb */ color: rgb(135, 136, 23);
/* oklch */ color: oklch(60.7% 0.126 110.2);
Tailwind
colors: {
  custom: {
    50: '#aeaa61',
    500: '#878817',
    950: '#000000',
  },
}
SCSS
$custom: #878817;
$custom-light: #aeaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#878817",
  "rgb": {
    "r": 135,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 60.531,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.6065,
    "c": 0.12559,
    "h": 110.2
  },
  "luminance": 0.22821
}

Semantic roles & 50–950 ramp

primary
#878817
secondary
#403FBC
accent
#3AEE3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878817

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

Preview Lab → · Contrast checker → · Palette generator →

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