#887B1F#887B1F

#887B1F is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.8% C 0.109 H 100.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#887B1F
RGBrgb(136, 123, 31)
HSLhsl(53, 63%, 33%)
HSVhsv(53, 77%, 53%)
CMYKcmyk(0%, 9.6%, 77.2%, 46.7%)
CIE-LABlab(51.27, -5.58, 48.73)
CIE-LCHlch(51.27, 49.05, 96.53°)
OKLaboklab(57.8% -0.0206 0.107)
OKLCHoklch(57.8% 0.109 100.9)
XYZxyz(17.4845, 19.4999, 4.1389)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#887B1F #1F2C88
analogous
#88461F #887B1F #61881F
triadic
#887B1F #1F887B #7B1F88
tetradic
#887B1F #1F8846 #1F2C88 #881F61
square
#887B1F #1F8846 #1F2C88 #881F61
split-complementary
#887B1F #1F6188 #461F88
monochromatic
#242108 #564E14 #887B1F #BAA82A #D6C54B

Accessibility & contrast

On white

4.29
#887B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#887B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #887B1F
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##887B1F#FFFFFF#000000##000000
##887B1F1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#937269
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #887b1f;
/* rgb */ color: rgb(136, 123, 31);
/* oklch */ color: oklch(57.8% 0.109 100.9);
Tailwind
colors: {
  custom: {
    50: '#aea062',
    500: '#887b1f',
    950: '#000000',
  },
}
SCSS
$custom: #887b1f;
$custom-light: #aea062;
$custom-dark: #000000;
JSON
{
  "hex": "#887b1f",
  "rgb": {
    "r": 136,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 52.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57799,
    "c": 0.10894,
    "h": 100.9
  },
  "luminance": 0.19499
}

Semantic roles & 50–950 ramp

primary
#887B1F
secondary
#4A58B9
accent
#56E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #887B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#887B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva