#877C21#877C21

#877C21 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.9% C 0.109 H 102.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#877C21
RGBrgb(135, 124, 33)
HSLhsl(54, 61%, 33%)
HSVhsv(54, 76%, 53%)
CMYKcmyk(0%, 8.1%, 75.6%, 47.1%)
CIE-LABlab(51.47, -6.51, 48.13)
CIE-LCHlch(51.47, 48.57, 97.70°)
OKLaboklab(57.94% -0.023 0.1062)
OKLCHoklch(57.94% 0.109 102.2)
XYZxyz(17.4746, 19.6768, 4.3161)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877C21 #212C87
analogous
#874921 #877C21 #5F8721
triadic
#877C21 #21877C #7C2187
tetradic
#877C21 #218749 #212C87 #87215F
square
#877C21 #218749 #212C87 #87215F
split-complementary
#877C21 #215F87 #492187
monochromatic
#252209 #564F15 #877C21 #B8A92D #D4C54F

Accessibility & contrast

On white

4.26
#877C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#877C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877C21
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877C21#FFFFFF#000000##000000
##877C211.004.264.944.94
#FFFFFF4.261.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887810
Deuteranopia (green-blind)
#8B7D27
Tritanopia (blue-blind)
#92736A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #877c21;
/* rgb */ color: rgb(135, 124, 33);
/* oklch */ color: oklch(57.9% 0.109 102.2);
Tailwind
colors: {
  custom: {
    50: '#ada163',
    500: '#877c21',
    950: '#000000',
  },
}
SCSS
$custom: #877c21;
$custom-light: #ada163;
$custom-dark: #000000;
JSON
{
  "hex": "#877c21",
  "rgb": {
    "r": 135,
    "g": 124,
    "b": 33
  },
  "hsl": {
    "h": 53.529,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57942,
    "c": 0.10861,
    "h": 102.2
  },
  "luminance": 0.19676
}

Semantic roles & 50–950 ramp

primary
#877C21
secondary
#4D58B7
accent
#55E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #877C21

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

Preview Lab → · Contrast checker → · Palette generator →

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