#877D28#877D28

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

Color values

HEX#877D28
RGBrgb(135, 125, 40)
HSLhsl(54, 54%, 34%)
HSVhsv(54, 70%, 53%)
CMYKcmyk(0%, 7.4%, 70.4%, 47.1%)
CIE-LABlab(51.81, -6.69, 45.63)
CIE-LCHlch(51.81, 46.11, 98.34°)
OKLaboklab(58.22% -0.0227 0.1022)
OKLCHoklch(58.22% 0.105 102.5)
XYZxyz(17.7090, 19.9721, 4.9292)
Luminance0.1997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877D28 #283287
analogous
#874E28 #877D28 #628728
triadic
#877D28 #28877D #7D2887
tetradic
#877D28 #28874E #283287 #872862
square
#877D28 #28874E #283287 #872862
split-complementary
#877D28 #286287 #4E2887
monochromatic
#29260C #58511A #877D28 #B6A936 #CEC25B

Accessibility & contrast

On white

4.20
#877D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##877D28#FFFFFF#000000##000000
##877D281.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791C
Deuteranopia (green-blind)
#8C7D2D
Tritanopia (blue-blind)
#91746C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #877d28;
/* rgb */ color: rgb(135, 125, 40);
/* oklch */ color: oklch(58.2% 0.105 102.5);
Tailwind
colors: {
  custom: {
    50: '#ada267',
    500: '#877d28',
    950: '#000000',
  },
}
SCSS
$custom: #877d28;
$custom-light: #ada267;
$custom-dark: #000000;
JSON
{
  "hex": "#877d28",
  "rgb": {
    "r": 135,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 53.684,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.10467,
    "h": 102.5
  },
  "luminance": 0.19971
}

Semantic roles & 50–950 ramp

primary
#877D28
secondary
#5761B4
accent
#5ADE4A
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #877D28

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

Preview Lab → · Contrast checker → · Palette generator →

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