#878216#878216

#878216 is a mid, vivid yellow. Relative luminance 0.212; OKLCH L 59.3% C 0.120 H 106.7°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#878216
RGBrgb(135, 130, 22)
HSLhsl(57, 72%, 31%)
HSVhsv(57, 84%, 53%)
CMYKcmyk(0%, 3.7%, 83.7%, 47.1%)
CIE-LABlab(53.14, -10.25, 53.33)
CIE-LCHlch(53.14, 54.30, 100.88°)
OKLaboklab(59.25% -0.0345 0.1151)
OKLCHoklch(59.25% 0.12 106.7)
XYZxyz(18.1199, 21.1748, 3.8916)
Luminance0.2117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878216 #161B87
analogous
#874916 #878216 #538716
triadic
#878216 #168782 #821687
tetradic
#878216 #168749 #161B87 #871653
square
#878216 #168749 #161B87 #871653
split-complementary
#878216 #165387 #491687
monochromatic
#1E1D05 #524F0D #878216 #BCB51F #DFD739

Accessibility & contrast

On white

4.01
#878216 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#878216 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878216
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878216#FFFFFF#000000##000000
##8782161.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#908120
Tritanopia (blue-blind)
#92796F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #878216;
/* rgb */ color: rgb(135, 130, 22);
/* oklch */ color: oklch(59.3% 0.120 106.7);
Tailwind
colors: {
  custom: {
    50: '#aea65f',
    500: '#878216',
    950: '#000000',
  },
}
SCSS
$custom: #878216;
$custom-light: #aea65f;
$custom-dark: #000000;
JSON
{
  "hex": "#878216",
  "rgb": {
    "r": 135,
    "g": 130,
    "b": 22
  },
  "hsl": {
    "h": 57.345,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59253,
    "c": 0.12011,
    "h": 106.7
  },
  "luminance": 0.21174
}

Semantic roles & 50–950 ramp

primary
#878216
secondary
#3E43BB
accent
#41EF39
background
#FBFAF5
surface
#F6F4EA
border
#D0CEC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #878216

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

Preview Lab → · Contrast checker → · Palette generator →

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