#877D2F#877D2F

#877D2F is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.3% C 0.099 H 102.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#877D2F
RGBrgb(135, 125, 47)
HSLhsl(53, 48%, 36%)
HSVhsv(53, 65%, 53%)
CMYKcmyk(0%, 7.4%, 65.2%, 47.1%)
CIE-LABlab(51.86, -6.25, 42.57)
CIE-LCHlch(51.86, 43.02, 98.35°)
OKLaboklab(58.29% -0.0206 0.0969)
OKLCHoklch(58.29% 0.099 102)
XYZxyz(17.8391, 20.0241, 5.6141)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D2F #2F3987
analogous
#87512F #877D2F #65872F
triadic
#877D2F #2F877D #7D2F87
tetradic
#877D2F #2F8751 #2F3987 #872F65
square
#877D2F #2F8751 #2F3987 #872F65
split-complementary
#877D2F #2F6587 #512F87
monochromatic
#2C290F #5A531F #877D2F #B4A73F #CABF66

Accessibility & contrast

On white

4.20
#877D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#877D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877D2F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877D2F#FFFFFF#000000##000000
##877D2F1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887926
Deuteranopia (green-blind)
#8B7E33
Tritanopia (blue-blind)
#91746D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #877d2f;
/* rgb */ color: rgb(135, 125, 47);
/* oklch */ color: oklch(58.3% 0.099 102.0);
Tailwind
colors: {
  custom: {
    50: '#ada26b',
    500: '#877d2f',
    950: '#000000',
  },
}
SCSS
$custom: #877d2f;
$custom-light: #ada26b;
$custom-dark: #000000;
JSON
{
  "hex": "#877d2f",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 53.182,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5829,
    "c": 0.09908,
    "h": 102
  },
  "luminance": 0.20023
}

Semantic roles & 50–950 ramp

primary
#877D2F
secondary
#616AB1
accent
#5FD850
background
#FAF9F6
surface
#F5F2EB
border
#CFCCC6
text
#100F07
muted
#7F7E7A

Preview Lab

Preview with #877D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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