#877D31#877D31

#877D31 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.3% C 0.097 H 101.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#877D31
RGBrgb(135, 125, 49)
HSLhsl(53, 47%, 36%)
HSVhsv(53, 64%, 53%)
CMYKcmyk(0%, 7.4%, 63.7%, 47.1%)
CIE-LABlab(51.88, -6.11, 41.65)
CIE-LCHlch(51.88, 42.10, 98.34°)
OKLaboklab(58.31% -0.02 0.0953)
OKLCHoklch(58.31% 0.097 101.8)
XYZxyz(17.8804, 20.0406, 5.8315)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D31 #313B87
analogous
#875231 #877D31 #668731
triadic
#877D31 #31877D #7D3187
tetradic
#877D31 #318752 #313B87 #873166
square
#877D31 #318752 #313B87 #873166
split-complementary
#877D31 #316687 #523187
monochromatic
#2D2A10 #5A5321 #877D31 #B4A741 #C9BE6A

Accessibility & contrast

On white

4.19
#877D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#877D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877D31
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877D31#FFFFFF#000000##000000
##877D311.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887928
Deuteranopia (green-blind)
#8B7E35
Tritanopia (blue-blind)
#91756D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #877d31;
/* rgb */ color: rgb(135, 125, 49);
/* oklch */ color: oklch(58.3% 0.097 101.8);
Tailwind
colors: {
  custom: {
    50: '#aca26d',
    500: '#877d31',
    950: '#000000',
  },
}
SCSS
$custom: #877d31;
$custom-light: #aca26d;
$custom-dark: #000000;
JSON
{
  "hex": "#877d31",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 53.023,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58311,
    "c": 0.09734,
    "h": 101.8
  },
  "luminance": 0.2004
}

Semantic roles & 50–950 ramp

primary
#877D31
secondary
#646CB0
accent
#61D651
background
#FAF9F6
surface
#F5F2EC
border
#CFCCC7
text
#100F07
muted
#7F7E7A

Preview Lab

Preview with #877D31

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

Preview Lab → · Contrast checker → · Palette generator →

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