#877B31#877B31

#877B31 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.9% C 0.095 H 100.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#877B31
RGBrgb(135, 123, 49)
HSLhsl(52, 47%, 36%)
HSVhsv(52, 64%, 53%)
CMYKcmyk(0%, 8.9%, 63.7%, 47.1%)
CIE-LABlab(51.31, -4.99, 41.03)
CIE-LCHlch(51.31, 41.33, 96.93°)
OKLaboklab(57.86% -0.0168 0.094)
OKLCHoklch(57.86% 0.095 100.1)
XYZxyz(17.6297, 19.5393, 5.7480)
Luminance0.1954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877B31 #313D87
analogous
#875031 #877B31 #688731
triadic
#877B31 #31877B #7B3187
tetradic
#877B31 #318750 #313D87 #873168
square
#877B31 #318750 #313D87 #873168
split-complementary
#877B31 #316887 #503187
monochromatic
#2D2910 #5A5221 #877B31 #B4A441 #C9BC6A

Accessibility & contrast

On white

4.28
#877B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#877B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877B31
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877B31#FFFFFF#000000##000000
##877B311.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867829
Deuteranopia (green-blind)
#8A7C35
Tritanopia (blue-blind)
#91736B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #877b31;
/* rgb */ color: rgb(135, 123, 49);
/* oklch */ color: oklch(57.9% 0.095 100.1);
Tailwind
colors: {
  custom: {
    50: '#aca06c',
    500: '#877b31',
    950: '#000000',
  },
}
SCSS
$custom: #877b31;
$custom-light: #aca06c;
$custom-dark: #000000;
JSON
{
  "hex": "#877b31",
  "rgb": {
    "r": 135,
    "g": 123,
    "b": 49
  },
  "hsl": {
    "h": 51.628,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.57858,
    "c": 0.09544,
    "h": 100.1
  },
  "luminance": 0.19539
}

Semantic roles & 50–950 ramp

primary
#877B31
secondary
#646EB0
accent
#64D651
background
#FAF9F6
surface
#F5F2EC
border
#CFCCC7
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #877B31

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

Preview Lab → · Contrast checker → · Palette generator →

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