#877B2F#877B2F

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

Color values

HEX#877B2F
RGBrgb(135, 123, 47)
HSLhsl(52, 48%, 36%)
HSVhsv(52, 65%, 53%)
CMYKcmyk(0%, 8.9%, 65.2%, 47.1%)
CIE-LABlab(51.29, -5.13, 41.95)
CIE-LCHlch(51.29, 42.27, 96.97°)
OKLaboklab(57.84% -0.0174 0.0956)
OKLCHoklch(57.84% 0.097 100.3)
XYZxyz(17.5884, 19.5228, 5.5306)
Luminance0.1952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877B2F #2F3B87
analogous
#874F2F #877B2F #67872F
triadic
#877B2F #2F877B #7B2F87
tetradic
#877B2F #2F874F #2F3B87 #872F67
square
#877B2F #2F874F #2F3B87 #872F67
split-complementary
#877B2F #2F6787 #4F2F87
monochromatic
#2C280F #5A521F #877B2F #B4A43F #CABC66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##877B2F#FFFFFF#000000##000000
##877B2F1.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)
#867826
Deuteranopia (green-blind)
#8A7C33
Tritanopia (blue-blind)
#91726B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #877b2f;
/* rgb */ color: rgb(135, 123, 47);
/* oklch */ color: oklch(57.8% 0.097 100.3);
Tailwind
colors: {
  custom: {
    50: '#ada06b',
    500: '#877b2f',
    950: '#000000',
  },
}
SCSS
$custom: #877b2f;
$custom-light: #ada06b;
$custom-dark: #000000;
JSON
{
  "hex": "#877b2f",
  "rgb": {
    "r": 135,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 51.818,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57837,
    "c": 0.09718,
    "h": 100.3
  },
  "luminance": 0.19522
}

Semantic roles & 50–950 ramp

primary
#877B2F
secondary
#616CB1
accent
#62D850
background
#FAF9F6
surface
#F5F2EB
border
#CFCCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #877B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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