#878822#878822

#878822 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.7% C 0.120 H 110.1°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#878822
RGBrgb(135, 136, 34)
HSLhsl(61, 60%, 33%)
HSVhsv(61, 75%, 53%)
CMYKcmyk(0.7%, 0%, 75%, 46.7%)
CIE-LABlab(54.94, -13.00, 51.07)
CIE-LCHlch(54.94, 52.70, 104.28°)
OKLaboklab(60.71% -0.0411 0.1126)
OKLCHoklch(60.71% 0.12 110.1)
XYZxyz(19.0852, 22.8753, 4.9231)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878822 #232288
analogous
#885622 #878822 #548822
triadic
#878822 #228788 #882287
tetradic
#878822 #228856 #232288 #882254
square
#878822 #228856 #232288 #882254
split-complementary
#878822 #225488 #562288
monochromatic
#26260A #565716 #878822 #B8B92E #D2D351

Accessibility & contrast

On white

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

On black

5.57
#878822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878822
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878822#FFFFFF#000000##000000
##8788221.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820D
Deuteranopia (green-blind)
#94852A
Tritanopia (blue-blind)
#917F74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #878822;
/* rgb */ color: rgb(135, 136, 34);
/* oklch */ color: oklch(60.7% 0.120 110.1);
Tailwind
colors: {
  custom: {
    50: '#adaa65',
    500: '#878822',
    950: '#000000',
  },
}
SCSS
$custom: #878822;
$custom-light: #adaa65;
$custom-dark: #000000;
JSON
{
  "hex": "#878822",
  "rgb": {
    "r": 135,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 60.588,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60712,
    "c": 0.11982,
    "h": 110.1
  },
  "luminance": 0.22875
}

Semantic roles & 50–950 ramp

primary
#878822
secondary
#504FB7
accent
#45E346
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878822

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

Preview Lab → · Contrast checker → · Palette generator →

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