#877E31#877E31

#877E31 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.5% C 0.098 H 102.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#877E31
RGBrgb(135, 126, 49)
HSLhsl(54, 47%, 36%)
HSVhsv(54, 64%, 53%)
CMYKcmyk(0%, 6.7%, 63.7%, 47.1%)
CIE-LABlab(52.17, -6.66, 41.96)
CIE-LCHlch(52.17, 42.49, 99.02°)
OKLaboklab(58.54% -0.0215 0.0959)
OKLCHoklch(58.54% 0.098 102.7)
XYZxyz(18.0076, 20.2950, 5.8739)
Luminance0.2029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877E31 #313A87
analogous
#875331 #877E31 #658731
triadic
#877E31 #31877E #7E3187
tetradic
#877E31 #318753 #313A87 #873165
square
#877E31 #318753 #313A87 #873165
split-complementary
#877E31 #316587 #533187
monochromatic
#2D2A10 #5A5421 #877E31 #B4A841 #C9BF6A

Accessibility & contrast

On white

4.15
#877E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#877E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877E31
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877E31#FFFFFF#000000##000000
##877E311.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A28
Deuteranopia (green-blind)
#8C7E35
Tritanopia (blue-blind)
#91766E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #877e31;
/* rgb */ color: rgb(135, 126, 49);
/* oklch */ color: oklch(58.5% 0.098 102.7);
Tailwind
colors: {
  custom: {
    50: '#aca36d',
    500: '#877e31',
    950: '#000000',
  },
}
SCSS
$custom: #877e31;
$custom-light: #aca36d;
$custom-dark: #000000;
JSON
{
  "hex": "#877e31",
  "rgb": {
    "r": 135,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 53.721,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58538,
    "c": 0.09832,
    "h": 102.7
  },
  "luminance": 0.20294
}

Semantic roles & 50–950 ramp

primary
#877E31
secondary
#646CB0
accent
#5FD651
background
#FAFAF6
surface
#F5F3EC
border
#CFCDC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #877E31

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

Preview Lab → · Contrast checker → · Palette generator →

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