#877F2D#877F2D

#877F2D is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.7% C 0.103 H 103.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#877F2D
RGBrgb(135, 127, 45)
HSLhsl(55, 50%, 35%)
HSVhsv(55, 67%, 53%)
CMYKcmyk(0%, 5.9%, 66.7%, 47.1%)
CIE-LABlab(52.42, -7.49, 44.07)
CIE-LCHlch(52.42, 44.70, 99.64°)
OKLaboklab(58.73% -0.0244 0.0998)
OKLCHoklch(58.73% 0.103 103.7)
XYZxyz(18.0554, 20.5198, 5.4918)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877F2D #2D3587
analogous
#87522D #877F2D #62872D
triadic
#877F2D #2D877F #7F2D87
tetradic
#877F2D #2D8752 #2D3587 #872D62
square
#877F2D #2D8752 #2D3587 #872D62
split-complementary
#877F2D #2D6287 #522D87
monochromatic
#2B290E #59541E #877F2D #B5AA3C #CBC263

Accessibility & contrast

On white

4.11
#877F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#877F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877F2D
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877F2D#FFFFFF#000000##000000
##877F2D1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B23
Deuteranopia (green-blind)
#8D7F32
Tritanopia (blue-blind)
#91766E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #877f2d;
/* rgb */ color: rgb(135, 127, 45);
/* oklch */ color: oklch(58.7% 0.103 103.7);
Tailwind
colors: {
  custom: {
    50: '#ada36a',
    500: '#877f2d',
    950: '#000000',
  },
}
SCSS
$custom: #877f2d;
$custom-light: #ada36a;
$custom-dark: #000000;
JSON
{
  "hex": "#877f2d",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 54.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58726,
    "c": 0.1027,
    "h": 103.7
  },
  "luminance": 0.20519
}

Semantic roles & 50–950 ramp

primary
#877F2D
secondary
#5E66B2
accent
#5BDA4E
background
#FAFAF6
surface
#F5F3EB
border
#CFCDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #877F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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