#877B1F#877B1F

#877B1F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.7% C 0.109 H 101.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#877B1F
RGBrgb(135, 123, 31)
HSLhsl(53, 63%, 33%)
HSVhsv(53, 77%, 53%)
CMYKcmyk(0%, 8.9%, 77%, 47.1%)
CIE-LABlab(51.17, -6.05, 48.61)
CIE-LCHlch(51.17, 48.98, 97.09°)
OKLaboklab(57.7% -0.0219 0.1067)
OKLCHoklch(57.7% 0.109 101.6)
XYZxyz(17.3228, 19.4165, 4.1314)
Luminance0.1942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877B1F #1F2B87
analogous
#87471F #877B1F #5F871F
triadic
#877B1F #1F877B #7B1F87
tetradic
#877B1F #1F8747 #1F2B87 #871F5F
square
#877B1F #1F8747 #1F2B87 #871F5F
split-complementary
#877B1F #1F5F87 #471F87
monochromatic
#232008 #554E14 #877B1F #B9A82A #D6C64B

Accessibility & contrast

On white

4.30
#877B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#877B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877B1F
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877B1F#FFFFFF#000000##000000
##877B1F1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#927269
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #877b1f;
/* rgb */ color: rgb(135, 123, 31);
/* oklch */ color: oklch(57.7% 0.109 101.6);
Tailwind
colors: {
  custom: {
    50: '#ada062',
    500: '#877b1f',
    950: '#000000',
  },
}
SCSS
$custom: #877b1f;
$custom-light: #ada062;
$custom-dark: #000000;
JSON
{
  "hex": "#877b1f",
  "rgb": {
    "r": 135,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 53.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.577,
    "c": 0.10896,
    "h": 101.6
  },
  "luminance": 0.19416
}

Semantic roles & 50–950 ramp

primary
#877B1F
secondary
#4A56B8
accent
#55E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #877B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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