#87841F#87841F

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

Color values

HEX#87841F
RGBrgb(135, 132, 31)
HSLhsl(58, 63%, 33%)
HSVhsv(58, 77%, 53%)
CMYKcmyk(0%, 2.2%, 77%, 47.1%)
CIE-LABlab(53.76, -10.99, 51.03)
CIE-LCHlch(53.76, 52.20, 102.15°)
OKLaboklab(59.77% -0.0358 0.1119)
OKLCHoklch(59.77% 0.117 107.7)
XYZxyz(18.4910, 21.7530, 4.5208)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87841F #1F2287
analogous
#87501F #87841F #56871F
triadic
#87841F #1F8784 #841F87
tetradic
#87841F #1F8750 #1F2287 #871F56
square
#87841F #1F8750 #1F2287 #871F56
split-complementary
#87841F #1F5687 #501F87
monochromatic
#232308 #555314 #87841F #B9B52A #D6D24B

Accessibility & contrast

On white

3.92
#87841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#87841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##87841F#FFFFFF#000000##000000
##87841F1.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)
#907F08
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#917B71
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #87841f;
/* rgb */ color: rgb(135, 132, 31);
/* oklch */ color: oklch(59.8% 0.117 107.7);
Tailwind
colors: {
  custom: {
    50: '#ada763',
    500: '#87841f',
    950: '#000000',
  },
}
SCSS
$custom: #87841f;
$custom-light: #ada763;
$custom-dark: #000000;
JSON
{
  "hex": "#87841f",
  "rgb": {
    "r": 135,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 58.269,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59765,
    "c": 0.11747,
    "h": 107.7
  },
  "luminance": 0.21752
}

Semantic roles & 50–950 ramp

primary
#87841F
secondary
#4A4DB8
accent
#47E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #87841F

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

Preview Lab → · Contrast checker → · Palette generator →

#87841F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva