#877D1B#877D1B

#877D1B is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.1% C 0.113 H 103.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#877D1B
RGBrgb(135, 125, 27)
HSLhsl(54, 67%, 32%)
HSVhsv(54, 80%, 53%)
CMYKcmyk(0%, 7.4%, 80%, 47.1%)
CIE-LABlab(51.72, -7.33, 50.53)
CIE-LCHlch(51.72, 51.06, 98.25°)
OKLaboklab(58.13% -0.0259 0.11)
OKLCHoklch(58.13% 0.113 103.2)
XYZxyz(17.5239, 19.8980, 3.9543)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D1B #1B2587
analogous
#87471B #877D1B #5B871B
triadic
#877D1B #1B877D #7D1B87
tetradic
#877D1B #1B8747 #1B2587 #871B5B
square
#877D1B #1B8747 #1B2587 #871B5B
split-complementary
#877D1B #1B5B87 #471B87
monochromatic
#211F07 #544E11 #877D1B #BAAC25 #D9CB43

Accessibility & contrast

On white

4.22
#877D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#877D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877D1B
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877D1B#FFFFFF#000000##000000
##877D1B1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897902
Deuteranopia (green-blind)
#8C7D23
Tritanopia (blue-blind)
#92746B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #877d1b;
/* rgb */ color: rgb(135, 125, 27);
/* oklch */ color: oklch(58.1% 0.113 103.2);
Tailwind
colors: {
  custom: {
    50: '#ada261',
    500: '#877d1b',
    950: '#000000',
  },
}
SCSS
$custom: #877d1b;
$custom-light: #ada261;
$custom-dark: #000000;
JSON
{
  "hex": "#877d1b",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 54.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58131,
    "c": 0.11303,
    "h": 103.2
  },
  "luminance": 0.19897
}

Semantic roles & 50–950 ramp

primary
#877D1B
secondary
#444FBA
accent
#4EEA3E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F05
muted
#807E7A

Preview Lab

Preview with #877D1B

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

Preview Lab → · Contrast checker → · Palette generator →

#877D1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva