#877F1F#877F1F

#877F1F is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.6% C 0.113 H 104.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#877F1F
RGBrgb(135, 127, 31)
HSLhsl(55, 63%, 33%)
HSVhsv(55, 77%, 53%)
CMYKcmyk(0%, 5.9%, 77%, 47.1%)
CIE-LABlab(52.32, -8.26, 49.68)
CIE-LCHlch(52.32, 50.36, 99.44°)
OKLaboklab(58.61% -0.0281 0.109)
OKLCHoklch(58.61% 0.113 104.5)
XYZxyz(17.8291, 20.4293, 4.3002)
Luminance0.2043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F1F #1F2787
analogous
#874B1F #877F1F #5B871F
triadic
#877F1F #1F877F #7F1F87
tetradic
#877F1F #1F874B #1F2787 #871F5B
square
#877F1F #1F874B #1F2787 #871F5B
split-complementary
#877F1F #1F5B87 #4B1F87
monochromatic
#232108 #555014 #877F1F #B9AE2A #D6CB4B

Accessibility & contrast

On white

4.13
#877F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#877F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877F1F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877F1F#FFFFFF#000000##000000
##877F1F1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0B
Deuteranopia (green-blind)
#8E7F26
Tritanopia (blue-blind)
#92766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #877f1f;
/* rgb */ color: rgb(135, 127, 31);
/* oklch */ color: oklch(58.6% 0.113 104.5);
Tailwind
colors: {
  custom: {
    50: '#ada363',
    500: '#877f1f',
    950: '#000000',
  },
}
SCSS
$custom: #877f1f;
$custom-light: #ada363;
$custom-dark: #000000;
JSON
{
  "hex": "#877f1f",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 55.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58613,
    "c": 0.1126,
    "h": 104.5
  },
  "luminance": 0.20429
}

Semantic roles & 50–950 ramp

primary
#877F1F
secondary
#4A52B8
accent
#4FE642
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #877F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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