#878726#878726

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

Color values

HEX#878726
RGBrgb(135, 135, 38)
HSLhsl(60, 56%, 34%)
HSVhsv(60, 72%, 53%)
CMYKcmyk(0%, 0%, 71.9%, 47.1%)
CIE-LABlab(54.68, -12.26, 49.31)
CIE-LCHlch(54.68, 50.81, 103.97°)
OKLaboklab(60.51% -0.0386 0.1096)
OKLCHoklch(60.51% 0.116 109.4)
XYZxyz(19.0062, 22.6193, 5.1981)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878726 #262687
analogous
#875726 #878726 #578726
triadic
#878726 #268787 #872687
tetradic
#878726 #268757 #262687 #872657
square
#878726 #268757 #262687 #872657
split-complementary
#878726 #265787 #572687
monochromatic
#27270B #575719 #878726 #B7B733 #D0D058

Accessibility & contrast

On white

3.80
#878726 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##878726#FFFFFF#000000##000000
##8787261.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928116
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#917E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #878726;
/* rgb */ color: rgb(135, 135, 38);
/* oklch */ color: oklch(60.5% 0.116 109.4);
Tailwind
colors: {
  custom: {
    50: '#ada967',
    500: '#878726',
    950: '#000000',
  },
}
SCSS
$custom: #878726;
$custom-light: #ada967;
$custom-dark: #000000;
JSON
{
  "hex": "#878726",
  "rgb": {
    "r": 135,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 60,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60508,
    "c": 0.11619,
    "h": 109.4
  },
  "luminance": 0.22619
}

Semantic roles & 50–950 ramp

primary
#878726
secondary
#5454B5
accent
#48DF48
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878726

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

Preview Lab → · Contrast checker → · Palette generator →

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