#878422#878422

#878422 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.8% C 0.116 H 107.7°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#878422
RGBrgb(135, 132, 34)
HSLhsl(58, 60%, 33%)
HSVhsv(58, 75%, 53%)
CMYKcmyk(0%, 2.2%, 74.8%, 47.1%)
CIE-LABlab(53.78, -10.85, 49.96)
CIE-LCHlch(53.78, 51.13, 102.25°)
OKLaboklab(59.78% -0.0351 0.1102)
OKLCHoklch(59.78% 0.116 107.7)
XYZxyz(18.5324, 21.7695, 4.7388)
Luminance0.2177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878422 #222587
analogous
#875122 #878422 #578722
triadic
#878422 #228784 #842287
tetradic
#878422 #228751 #222587 #872257
square
#878422 #228751 #222587 #872257
split-complementary
#878422 #225787 #512287
monochromatic
#252409 #565416 #878422 #B8B42E #D3CF50

Accessibility & contrast

On white

3.92
#878422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#878422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878422
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878422#FFFFFF#000000##000000
##8784221.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F0F
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#917B71
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #878422;
/* rgb */ color: rgb(135, 132, 34);
/* oklch */ color: oklch(59.8% 0.116 107.7);
Tailwind
colors: {
  custom: {
    50: '#ada765',
    500: '#878422',
    950: '#000000',
  },
}
SCSS
$custom: #878422;
$custom-light: #ada765;
$custom-dark: #000000;
JSON
{
  "hex": "#878422",
  "rgb": {
    "r": 135,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 58.218,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59784,
    "c": 0.11567,
    "h": 107.7
  },
  "luminance": 0.21769
}

Semantic roles & 50–950 ramp

primary
#878422
secondary
#4E51B7
accent
#4AE345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878422

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

Preview Lab → · Contrast checker → · Palette generator →

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