#877B21#877B21

#877B21 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.7% C 0.108 H 101.5°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#877B21
RGBrgb(135, 123, 33)
HSLhsl(53, 61%, 33%)
HSVhsv(53, 76%, 53%)
CMYKcmyk(0%, 8.9%, 75.6%, 47.1%)
CIE-LABlab(51.18, -5.95, 47.86)
CIE-LCHlch(51.18, 48.23, 97.09°)
OKLaboklab(57.71% -0.0214 0.1056)
OKLCHoklch(57.71% 0.108 101.5)
XYZxyz(17.3499, 19.4274, 4.2745)
Luminance0.1943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877B21 #212D87
analogous
#874821 #877B21 #608721
triadic
#877B21 #21877B #7B2187
tetradic
#877B21 #218748 #212D87 #872160
square
#877B21 #218748 #212D87 #872160
split-complementary
#877B21 #216087 #482187
monochromatic
#252109 #564E15 #877B21 #B8A82D #D4C44F

Accessibility & contrast

On white

4.30
#877B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#877B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877B21
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877B21#FFFFFF#000000##000000
##877B211.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#877711
Deuteranopia (green-blind)
#8A7C27
Tritanopia (blue-blind)
#92726A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #877b21;
/* rgb */ color: rgb(135, 123, 33);
/* oklch */ color: oklch(57.7% 0.108 101.5);
Tailwind
colors: {
  custom: {
    50: '#ada063',
    500: '#877b21',
    950: '#000000',
  },
}
SCSS
$custom: #877b21;
$custom-light: #ada063;
$custom-dark: #000000;
JSON
{
  "hex": "#877b21",
  "rgb": {
    "r": 135,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 52.941,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57714,
    "c": 0.10772,
    "h": 101.5
  },
  "luminance": 0.19427
}

Semantic roles & 50–950 ramp

primary
#877B21
secondary
#4D59B7
accent
#57E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #877B21

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

Preview Lab → · Contrast checker → · Palette generator →

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