#877D40#877D40

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

Color values

HEX#877D40
RGBrgb(135, 125, 64)
HSLhsl(52, 36%, 39%)
HSVhsv(52, 53%, 53%)
CMYKcmyk(0%, 7.4%, 52.6%, 47.1%)
CIE-LABlab(52.05, -4.86, 34.32)
CIE-LCHlch(52.05, 34.66, 98.06°)
OKLaboklab(58.5% -0.0146 0.0813)
OKLCHoklch(58.5% 0.083 100.2)
XYZxyz(18.2513, 20.1890, 7.7850)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D40 #404A87
analogous
#875A40 #877D40 #6E8740
triadic
#877D40 #40877D #7D4087
tetradic
#877D40 #40875A #404A87 #87406E
square
#877D40 #40875A #404A87 #87406E
split-complementary
#877D40 #406E87 #5A4087
monochromatic
#343019 #5D572C #877D40 #AFA256 #C2B97F

Accessibility & contrast

On white

4.17
#877D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##877D40#FFFFFF#000000##000000
##877D401.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877A3B
Deuteranopia (green-blind)
#8A7E43
Tritanopia (blue-blind)
#90756F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #877d40;
/* rgb */ color: rgb(135, 125, 64);
/* oklch */ color: oklch(58.5% 0.083 100.2);
Tailwind
colors: {
  custom: {
    50: '#aca276',
    500: '#877d40',
    950: '#000000',
  },
}
SCSS
$custom: #877d40;
$custom-light: #aca276;
$custom-dark: #000000;
JSON
{
  "hex": "#877d40",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 51.549,
    "s": 35.678,
    "l": 39.02
  },
  "oklch": {
    "l": 0.58497,
    "c": 0.08261,
    "h": 100.2
  },
  "luminance": 0.20188
}

Semantic roles & 50–950 ramp

primary
#877D40
secondary
#767EAD
accent
#6CCC5C
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#100F08
muted
#7F7E7B

Preview Lab

Preview with #877D40

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

Preview Lab → · Contrast checker → · Palette generator →

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