#877B2D#877B2D

#877B2D is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.8% C 0.099 H 100.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#877B2D
RGBrgb(135, 123, 45)
HSLhsl(52, 50%, 35%)
HSVhsv(52, 67%, 53%)
CMYKcmyk(0%, 8.9%, 66.7%, 47.1%)
CIE-LABlab(51.28, -5.27, 42.86)
CIE-LCHlch(51.28, 43.18, 97.00°)
OKLaboklab(57.82% -0.0181 0.0972)
OKLCHoklch(57.82% 0.099 100.5)
XYZxyz(17.5490, 19.5070, 5.3230)
Luminance0.1951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877B2D #2D3987
analogous
#874E2D #877B2D #66872D
triadic
#877B2D #2D877B #7B2D87
tetradic
#877B2D #2D874E #2D3987 #872D66
square
#877B2D #2D874E #2D3987 #872D66
split-complementary
#877B2D #2D6687 #4E2D87
monochromatic
#2B270E #59511E #877B2D #B5A53C #CBBD63

Accessibility & contrast

On white

4.28
#877B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#877B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877B2D
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877B2D#FFFFFF#000000##000000
##877B2D1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#867723
Deuteranopia (green-blind)
#8A7C31
Tritanopia (blue-blind)
#91726B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #877b2d;
/* rgb */ color: rgb(135, 123, 45);
/* oklch */ color: oklch(57.8% 0.099 100.5);
Tailwind
colors: {
  custom: {
    50: '#ada06a',
    500: '#877b2d',
    950: '#000000',
  },
}
SCSS
$custom: #877b2d;
$custom-light: #ada06a;
$custom-dark: #000000;
JSON
{
  "hex": "#877b2d",
  "rgb": {
    "r": 135,
    "g": 123,
    "b": 45
  },
  "hsl": {
    "h": 52,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57816,
    "c": 0.09888,
    "h": 100.5
  },
  "luminance": 0.19506
}

Semantic roles & 50–950 ramp

primary
#877B2D
secondary
#5E69B2
accent
#61DA4E
background
#FAF9F6
surface
#F5F2EB
border
#CFCCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #877B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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