#877A2F#877A2F

#877A2F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.6% C 0.096 H 99.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#877A2F
RGBrgb(135, 122, 47)
HSLhsl(51, 48%, 36%)
HSVhsv(51, 65%, 53%)
CMYKcmyk(0%, 9.6%, 65.2%, 47.1%)
CIE-LABlab(51.01, -4.57, 41.65)
CIE-LCHlch(51.01, 41.90, 96.26°)
OKLaboklab(57.61% -0.0158 0.095)
OKLCHoklch(57.61% 0.096 99.5)
XYZxyz(17.4650, 19.2760, 5.4895)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877A2F #2F3C87
analogous
#874E2F #877A2F #68872F
triadic
#877A2F #2F877A #7A2F87
tetradic
#877A2F #2F874E #2F3C87 #872F68
square
#877A2F #2F874E #2F3C87 #872F68
split-complementary
#877A2F #2F6887 #4E2F87
monochromatic
#2C280F #5A511F #877A2F #B4A33F #CABB66

Accessibility & contrast

On white

4.33
#877A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#877A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877A2F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877A2F#FFFFFF#000000##000000
##877A2F1.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857726
Deuteranopia (green-blind)
#897C33
Tritanopia (blue-blind)
#91716A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #877a2f;
/* rgb */ color: rgb(135, 122, 47);
/* oklch */ color: oklch(57.6% 0.096 99.5);
Tailwind
colors: {
  custom: {
    50: '#ada06b',
    500: '#877a2f',
    950: '#000000',
  },
}
SCSS
$custom: #877a2f;
$custom-light: #ada06b;
$custom-dark: #000000;
JSON
{
  "hex": "#877a2f",
  "rgb": {
    "r": 135,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 51.136,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57611,
    "c": 0.09626,
    "h": 99.5
  },
  "luminance": 0.19275
}

Semantic roles & 50–950 ramp

primary
#877A2F
secondary
#616DB1
accent
#64D850
background
#FAF9F6
surface
#F5F2EB
border
#CFCCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #877A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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