#8B871D#8B871D

#8B871D is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.8% C 0.121 H 107.2°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8B871D
RGBrgb(139, 135, 29)
HSLhsl(58, 65%, 33%)
HSVhsv(58, 79%, 55%)
CMYKcmyk(0%, 2.9%, 79.1%, 45.5%)
CIE-LABlab(54.98, -10.86, 52.95)
CIE-LCHlch(54.98, 54.05, 101.59°)
OKLaboklab(60.81% -0.0358 0.1154)
OKLCHoklch(60.81% 0.121 107.2)
XYZxyz(19.5340, 22.9063, 4.5546)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B871D #1D218B
analogous
#8B501D #8B871D #588B1D
triadic
#8B871D #1D8B87 #871D8B
tetradic
#8B871D #1D8B50 #1D218B #8B1D58
square
#8B871D #1D8B50 #1D218B #8B1D58
split-complementary
#8B871D #1D588B #501D8B
monochromatic
#262508 #585612 #8B871D #BEB828 #D9D449

Accessibility & contrast

On white

3.76
#8B871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#8B871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B871D
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B871D#FFFFFF#000000##000000
##8B871D1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938101
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#967E73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8b871d;
/* rgb */ color: rgb(139, 135, 29);
/* oklch */ color: oklch(60.8% 0.121 107.2);
Tailwind
colors: {
  custom: {
    50: '#b0a963',
    500: '#8b871d',
    950: '#000000',
  },
}
SCSS
$custom: #8b871d;
$custom-light: #b0a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8b871d",
  "rgb": {
    "r": 139,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 57.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60814,
    "c": 0.12085,
    "h": 107.2
  },
  "luminance": 0.22906
}

Semantic roles & 50–950 ramp

primary
#8B871D
secondary
#494DBB
accent
#46E83F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B871D

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

Preview Lab → · Contrast checker → · Palette generator →

#8B871D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva