#877A21#877A21

#877A21 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.5% C 0.107 H 100.7°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#877A21
RGBrgb(135, 122, 33)
HSLhsl(52, 61%, 33%)
HSVhsv(52, 76%, 53%)
CMYKcmyk(0%, 9.6%, 75.6%, 47.1%)
CIE-LABlab(50.90, -5.39, 47.59)
CIE-LCHlch(50.90, 47.89, 96.47°)
OKLaboklab(57.49% -0.0198 0.105)
OKLCHoklch(57.49% 0.107 100.7)
XYZxyz(17.2265, 19.1806, 4.2334)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877A21 #212E87
analogous
#874721 #877A21 #618721
triadic
#877A21 #21877A #7A2187
tetradic
#877A21 #218747 #212E87 #872161
square
#877A21 #218747 #212E87 #872161
split-complementary
#877A21 #216187 #472187
monochromatic
#252109 #564E15 #877A21 #B8A62D #D4C34F

Accessibility & contrast

On white

4.34
#877A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#877A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877A21
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877A21#FFFFFF#000000##000000
##877A211.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#867611
Deuteranopia (green-blind)
#8A7B27
Tritanopia (blue-blind)
#927169
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #877a21;
/* rgb */ color: rgb(135, 122, 33);
/* oklch */ color: oklch(57.5% 0.107 100.7);
Tailwind
colors: {
  custom: {
    50: '#ada063',
    500: '#877a21',
    950: '#000000',
  },
}
SCSS
$custom: #877a21;
$custom-light: #ada063;
$custom-dark: #000000;
JSON
{
  "hex": "#877a21",
  "rgb": {
    "r": 135,
    "g": 122,
    "b": 33
  },
  "hsl": {
    "h": 52.353,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57487,
    "c": 0.10684,
    "h": 100.7
  },
  "luminance": 0.1918
}

Semantic roles & 50–950 ramp

primary
#877A21
secondary
#4D5AB7
accent
#58E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #877A21

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

Preview Lab → · Contrast checker → · Palette generator →

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