#877F2F#877F2F

#877F2F is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.7% C 0.101 H 103.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#877F2F
RGBrgb(135, 127, 47)
HSLhsl(55, 48%, 36%)
HSVhsv(55, 65%, 53%)
CMYKcmyk(0%, 5.9%, 65.2%, 47.1%)
CIE-LABlab(52.44, -7.35, 43.18)
CIE-LCHlch(52.44, 43.80, 99.67°)
OKLaboklab(58.75% -0.0238 0.0982)
OKLCHoklch(58.75% 0.101 103.6)
XYZxyz(18.0948, 20.5356, 5.6994)
Luminance0.2054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F2F #2F3787
analogous
#87532F #877F2F #63872F
triadic
#877F2F #2F877F #7F2F87
tetradic
#877F2F #2F8753 #2F3787 #872F63
square
#877F2F #2F8753 #2F3787 #872F63
split-complementary
#877F2F #2F6387 #532F87
monochromatic
#2C2A0F #5A541F #877F2F #B4AA3F #CAC166

Accessibility & contrast

On white

4.11
#877F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#877F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877F2F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877F2F#FFFFFF#000000##000000
##877F2F1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B25
Deuteranopia (green-blind)
#8D7F34
Tritanopia (blue-blind)
#91766E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #877f2f;
/* rgb */ color: rgb(135, 127, 47);
/* oklch */ color: oklch(58.7% 0.101 103.6);
Tailwind
colors: {
  custom: {
    50: '#ada36c',
    500: '#877f2f',
    950: '#000000',
  },
}
SCSS
$custom: #877f2f;
$custom-light: #ada36c;
$custom-dark: #000000;
JSON
{
  "hex": "#877f2f",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 54.545,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58745,
    "c": 0.10104,
    "h": 103.6
  },
  "luminance": 0.20535
}

Semantic roles & 50–950 ramp

primary
#877F2F
secondary
#6168B1
accent
#5CD850
background
#FAFAF6
surface
#F5F3EB
border
#CFCDC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #877F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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