#877D42#877D42

#877D42 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.080 H 99.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#877D42
RGBrgb(135, 125, 66)
HSLhsl(51, 34%, 39%)
HSVhsv(51, 51%, 53%)
CMYKcmyk(0%, 7.4%, 51.1%, 47.1%)
CIE-LABlab(52.08, -4.67, 33.29)
CIE-LCHlch(52.08, 33.62, 97.98°)
OKLaboklab(58.53% -0.0138 0.0792)
OKLCHoklch(58.53% 0.08 99.9)
XYZxyz(18.3092, 20.2121, 8.0901)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D42 #424C87
analogous
#875B42 #877D42 #6F8742
triadic
#877D42 #42877D #7D4287
tetradic
#877D42 #42875B #424C87 #87426F
square
#877D42 #42875B #424C87 #87426F
split-complementary
#877D42 #426F87 #5B4287
monochromatic
#35311A #5E572E #877D42 #AEA159 #C2B882

Accessibility & contrast

On white

4.16
#877D42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#877D42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877D42
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877D42#FFFFFF#000000##000000
##877D421.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877A3D
Deuteranopia (green-blind)
#8A7E45
Tritanopia (blue-blind)
#90766F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #877d42;
/* rgb */ color: rgb(135, 125, 66);
/* oklch */ color: oklch(58.5% 0.080 99.9);
Tailwind
colors: {
  custom: {
    50: '#aca278',
    500: '#877d42',
    950: '#000000',
  },
}
SCSS
$custom: #877d42;
$custom-light: #aca278;
$custom-dark: #000000;
JSON
{
  "hex": "#877d42",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 66
  },
  "hsl": {
    "h": 51.304,
    "s": 34.328,
    "l": 39.412
  },
  "oklch": {
    "l": 0.58526,
    "c": 0.08043,
    "h": 99.9
  },
  "luminance": 0.20211
}

Semantic roles & 50–950 ramp

primary
#877D42
secondary
#7880AC
accent
#6DCA5D
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#100F09
muted
#7F7E7B

Preview Lab

Preview with #877D42

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

Preview Lab → · Contrast checker → · Palette generator →

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