#8D861F#8D861F

#8D861F is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.8% C 0.118 H 105.4°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8D861F
RGBrgb(141, 134, 31)
HSLhsl(56, 64%, 34%)
HSVhsv(56, 78%, 55%)
CMYKcmyk(0%, 5%, 78%, 44.7%)
CIE-LABlab(54.88, -9.32, 52.25)
CIE-LCHlch(54.88, 53.08, 100.12°)
OKLaboklab(60.78% -0.0314 0.1143)
OKLCHoklch(60.78% 0.118 105.4)
XYZxyz(19.7578, 22.8126, 4.6586)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D861F #1F268D
analogous
#8D4F1F #8D861F #5D8D1F
triadic
#8D861F #1F8D86 #861F8D
tetradic
#8D861F #1F8D4F #1F268D #8D1F5D
square
#8D861F #1F8D4F #1F268D #8D1F5D
split-complementary
#8D861F #1F5D8D #4F1F8D
monochromatic
#292709 #5B5614 #8D861F #BFB62A #D8CF4E

Accessibility & contrast

On white

3.78
#8D861F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#8D861F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D861F
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D861F#FFFFFF#000000##000000
##8D861F1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#928106
Deuteranopia (green-blind)
#958527
Tritanopia (blue-blind)
#987C73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8d861f;
/* rgb */ color: rgb(141, 134, 31);
/* oklch */ color: oklch(60.8% 0.118 105.4);
Tailwind
colors: {
  custom: {
    50: '#b2a864',
    500: '#8d861f',
    950: '#000000',
  },
}
SCSS
$custom: #8d861f;
$custom-light: #b2a864;
$custom-dark: #000000;
JSON
{
  "hex": "#8d861f",
  "rgb": {
    "r": 141,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 56.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60783,
    "c": 0.11849,
    "h": 105.4
  },
  "luminance": 0.22812
}

Semantic roles & 50–950 ramp

primary
#8D861F
secondary
#4D54BB
accent
#4BE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D861F

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

Preview Lab → · Contrast checker → · Palette generator →

#8D861F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva