#877F2B#877F2B

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

Color values

HEX#877F2B
RGBrgb(135, 127, 43)
HSLhsl(55, 52%, 35%)
HSVhsv(55, 68%, 53%)
CMYKcmyk(0%, 5.9%, 68.1%, 47.1%)
CIE-LABlab(52.40, -7.61, 44.94)
CIE-LCHlch(52.40, 45.58, 99.62°)
OKLaboklab(58.71% -0.025 0.1013)
OKLCHoklch(58.71% 0.104 103.9)
XYZxyz(18.0178, 20.5047, 5.2938)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F2B #2B3387
analogous
#87512B #877F2B #61872B
triadic
#877F2B #2B877F #7F2B87
tetradic
#877F2B #2B8751 #2B3387 #872B61
square
#877F2B #2B8751 #2B3387 #872B61
split-complementary
#877F2B #2B6187 #512B87
monochromatic
#2A280D #59531C #877F2B #B5AB3A #CCC360

Accessibility & contrast

On white

4.12
#877F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#877F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877F2B
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877F2B#FFFFFF#000000##000000
##877F2B1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #877f2b;
/* rgb */ color: rgb(135, 127, 43);
/* oklch */ color: oklch(58.7% 0.104 103.9);
Tailwind
colors: {
  custom: {
    50: '#ada369',
    500: '#877f2b',
    950: '#000000',
  },
}
SCSS
$custom: #877f2b;
$custom-light: #ada369;
$custom-dark: #000000;
JSON
{
  "hex": "#877f2b",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 54.783,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58707,
    "c": 0.1043,
    "h": 103.9
  },
  "luminance": 0.20504
}

Semantic roles & 50–950 ramp

primary
#877F2B
secondary
#5B63B2
accent
#59DB4D
background
#FAFAF6
surface
#F5F3EB
border
#CFCDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #877F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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