#87831C#87831C

#87831C is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.5% C 0.118 H 107.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#87831C
RGBrgb(135, 131, 28)
HSLhsl(58, 66%, 32%)
HSVhsv(58, 79%, 53%)
CMYKcmyk(0%, 3%, 79.3%, 47.1%)
CIE-LABlab(53.46, -10.57, 51.77)
CIE-LCHlch(53.46, 52.84, 101.54°)
OKLaboklab(59.51% -0.0349 0.1129)
OKLCHoklch(59.51% 0.118 107.2)
XYZxyz(18.3183, 21.4680, 4.2772)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87831C #1C2087
analogous
#874E1C #87831C #56871C
triadic
#87831C #1C8783 #831C87
tetradic
#87831C #1C874E #1C2087 #871C56
square
#87831C #1C874E #1C2087 #871C56
split-complementary
#87831C #1C5687 #4E1C87
monochromatic
#222107 #545211 #87831C #BAB427 #D8D345

Accessibility & contrast

On white

3.97
#87831C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#87831C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87831C
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87831C#FFFFFF#000000##000000
##87831C1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E01
Deuteranopia (green-blind)
#918125
Tritanopia (blue-blind)
#917A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #87831c;
/* rgb */ color: rgb(135, 131, 28);
/* oklch */ color: oklch(59.5% 0.118 107.2);
Tailwind
colors: {
  custom: {
    50: '#ada662',
    500: '#87831c',
    950: '#000000',
  },
}
SCSS
$custom: #87831c;
$custom-light: #ada662;
$custom-dark: #000000;
JSON
{
  "hex": "#87831c",
  "rgb": {
    "r": 135,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 57.757,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.59515,
    "c": 0.11815,
    "h": 107.2
  },
  "luminance": 0.21467
}

Semantic roles & 50–950 ramp

primary
#87831C
secondary
#4549BA
accent
#46E93F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #87831C

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

Preview Lab → · Contrast checker → · Palette generator →

#87831C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva