#87851A#87851A

#87851A is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 60.0% C 0.121 H 108.4°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#87851A
RGBrgb(135, 133, 26)
HSLhsl(59, 68%, 32%)
HSVhsv(59, 81%, 53%)
CMYKcmyk(0%, 1.5%, 80.7%, 47.1%)
CIE-LABlab(54.03, -11.73, 52.92)
CIE-LCHlch(54.03, 54.20, 102.50°)
OKLaboklab(59.97% -0.0383 0.1149)
OKLCHoklch(59.97% 0.121 108.4)
XYZxyz(18.5664, 22.0012, 4.2457)
Luminance0.2200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87851A #1A1C87
analogous
#874F1A #87851A #53871A
triadic
#87851A #1A8785 #851A87
tetradic
#87851A #1A874F #1A1C87 #871A53
square
#87851A #1A874F #1A1C87 #871A53
split-complementary
#87851A #1A5387 #4F1A87
monochromatic
#202006 #545210 #87851A #BAB824 #DAD841

Accessibility & contrast

On white

3.89
#87851A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#87851A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87851A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87851A#FFFFFF#000000##000000
##87851A1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#928323
Tritanopia (blue-blind)
#917C71
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #87851a;
/* rgb */ color: rgb(135, 133, 26);
/* oklch */ color: oklch(60.0% 0.121 108.4);
Tailwind
colors: {
  custom: {
    50: '#ada861',
    500: '#87851a',
    950: '#000000',
  },
}
SCSS
$custom: #87851a;
$custom-light: #ada861;
$custom-dark: #000000;
JSON
{
  "hex": "#87851a",
  "rgb": {
    "r": 135,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 58.899,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59967,
    "c": 0.12115,
    "h": 108.4
  },
  "luminance": 0.22001
}

Semantic roles & 50–950 ramp

primary
#87851A
secondary
#4245BA
accent
#40EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #87851A

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

Preview Lab → · Contrast checker → · Palette generator →

#87851A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva