#877C1F#877C1F

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

Color values

HEX#877C1F
RGBrgb(135, 124, 31)
HSLhsl(54, 63%, 33%)
HSVhsv(54, 77%, 53%)
CMYKcmyk(0%, 8.1%, 77%, 47.1%)
CIE-LABlab(51.46, -6.60, 48.88)
CIE-LCHlch(51.46, 49.32, 97.69°)
OKLaboklab(57.93% -0.0234 0.1073)
OKLCHoklch(57.93% 0.11 102.3)
XYZxyz(17.4474, 19.6659, 4.1729)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877C1F #1F2A87
analogous
#87481F #877C1F #5E871F
triadic
#877C1F #1F877C #7C1F87
tetradic
#877C1F #1F8748 #1F2A87 #871F5E
square
#877C1F #1F8748 #1F2A87 #871F5E
split-complementary
#877C1F #1F5E87 #481F87
monochromatic
#232108 #554E14 #877C1F #B9AA2A #D6C74B

Accessibility & contrast

On white

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

On black

4.93
#877C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877C1F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877C1F#FFFFFF#000000##000000
##877C1F1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#8B7D26
Tritanopia (blue-blind)
#92736A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #877c1f;
/* rgb */ color: rgb(135, 124, 31);
/* oklch */ color: oklch(57.9% 0.110 102.3);
Tailwind
colors: {
  custom: {
    50: '#ada162',
    500: '#877c1f',
    950: '#000000',
  },
}
SCSS
$custom: #877c1f;
$custom-light: #ada162;
$custom-dark: #000000;
JSON
{
  "hex": "#877c1f",
  "rgb": {
    "r": 135,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 53.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57928,
    "c": 0.10985,
    "h": 102.3
  },
  "luminance": 0.19665
}

Semantic roles & 50–950 ramp

primary
#877C1F
secondary
#4A55B8
accent
#53E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #877C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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