#877D1F#877D1F

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

Color values

HEX#877D1F
RGBrgb(135, 125, 31)
HSLhsl(54, 63%, 33%)
HSVhsv(54, 77%, 53%)
CMYKcmyk(0%, 7.4%, 77%, 47.1%)
CIE-LABlab(51.74, -7.16, 49.14)
CIE-LCHlch(51.74, 49.66, 98.28°)
OKLaboklab(58.16% -0.025 0.1079)
OKLCHoklch(58.16% 0.111 103.1)
XYZxyz(17.5734, 19.9178, 4.2149)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D1F #1F2987
analogous
#87491F #877D1F #5D871F
triadic
#877D1F #1F877D #7D1F87
tetradic
#877D1F #1F8749 #1F2987 #871F5D
square
#877D1F #1F8749 #1F2987 #871F5D
split-complementary
#877D1F #1F5D87 #491F87
monochromatic
#232108 #554F14 #877D1F #B9AB2A #D6C84B

Accessibility & contrast

On white

4.21
#877D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##877D1F#FFFFFF#000000##000000
##877D1F1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#8C7D26
Tritanopia (blue-blind)
#92746B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #877d1f;
/* rgb */ color: rgb(135, 125, 31);
/* oklch */ color: oklch(58.2% 0.111 103.1);
Tailwind
colors: {
  custom: {
    50: '#ada262',
    500: '#877d1f',
    950: '#000000',
  },
}
SCSS
$custom: #877d1f;
$custom-light: #ada262;
$custom-dark: #000000;
JSON
{
  "hex": "#877d1f",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 54.231,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58156,
    "c": 0.11075,
    "h": 103.1
  },
  "luminance": 0.19917
}

Semantic roles & 50–950 ramp

primary
#877D1F
secondary
#4A54B8
accent
#52E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F05
muted
#807E7A

Preview Lab

Preview with #877D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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