#877D21#877D21

#877D21 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.2% C 0.110 H 102.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#877D21
RGBrgb(135, 125, 33)
HSLhsl(54, 61%, 33%)
HSVhsv(54, 76%, 53%)
CMYKcmyk(0%, 7.4%, 75.6%, 47.1%)
CIE-LABlab(51.76, -7.06, 48.41)
CIE-LCHlch(51.76, 48.92, 98.30°)
OKLaboklab(58.17% -0.0245 0.1067)
OKLCHoklch(58.17% 0.11 102.9)
XYZxyz(17.6006, 19.9287, 4.3581)
Luminance0.1993 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D21 #212B87
analogous
#874A21 #877D21 #5E8721
triadic
#877D21 #21877D #7D2187
tetradic
#877D21 #21874A #212B87 #87215E
square
#877D21 #21874A #212B87 #87215E
split-complementary
#877D21 #215E87 #4A2187
monochromatic
#252209 #564F15 #877D21 #B8AB2D #D4C74F

Accessibility & contrast

On white

4.21
#877D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#877D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877D21
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877D21#FFFFFF#000000##000000
##877D211.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897910
Deuteranopia (green-blind)
#8C7D27
Tritanopia (blue-blind)
#92746B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #877d21;
/* rgb */ color: rgb(135, 125, 33);
/* oklch */ color: oklch(58.2% 0.110 102.9);
Tailwind
colors: {
  custom: {
    50: '#ada263',
    500: '#877d21',
    950: '#000000',
  },
}
SCSS
$custom: #877d21;
$custom-light: #ada263;
$custom-dark: #000000;
JSON
{
  "hex": "#877d21",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 54.118,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5817,
    "c": 0.10951,
    "h": 102.9
  },
  "luminance": 0.19928
}

Semantic roles & 50–950 ramp

primary
#877D21
secondary
#4D57B7
accent
#54E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #877D21

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

Preview Lab → · Contrast checker → · Palette generator →

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