#8D8340#8D8340

#8D8340 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.4% C 0.089 H 100.9°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8D8340
RGBrgb(141, 131, 64)
HSLhsl(52, 38%, 40%)
HSVhsv(52, 55%, 55%)
CMYKcmyk(0%, 7.1%, 54.6%, 44.7%)
CIE-LABlab(54.31, -5.52, 37.13)
CIE-LCHlch(54.31, 37.54, 98.46°)
OKLaboklab(60.42% -0.0169 0.0873)
OKLCHoklch(60.42% 0.089 100.9)
XYZxyz(20.0269, 22.2662, 8.0924)
Luminance0.2226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8340 #404A8D
analogous
#8D5D40 #8D8340 #708D40
triadic
#8D8340 #408D83 #83408D
tetradic
#8D8340 #408D5D #404A8D #8D4070
square
#8D8340 #408D5D #404A8D #8D4070
split-complementary
#8D8340 #40708D #5D408D
monochromatic
#39351A #635C2D #8D8340 #B3A757 #C6BD81

Accessibility & contrast

On white

3.85
#8D8340 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#8D8340 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8340
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8340#FFFFFF#000000##000000
##8D83401.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E803A
Deuteranopia (green-blind)
#918443
Tritanopia (blue-blind)
#977B74
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8d8340;
/* rgb */ color: rgb(141, 131, 64);
/* oklch */ color: oklch(60.4% 0.089 100.9);
Tailwind
colors: {
  custom: {
    50: '#b0a677',
    500: '#8d8340',
    950: '#000000',
  },
}
SCSS
$custom: #8d8340;
$custom-light: #b0a677;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8340",
  "rgb": {
    "r": 141,
    "g": 131,
    "b": 64
  },
  "hsl": {
    "h": 52.208,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.60421,
    "c": 0.08895,
    "h": 100.9
  },
  "luminance": 0.22265
}

Semantic roles & 50–950 ramp

primary
#8D8340
secondary
#7880B0
accent
#69CE5A
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#110F09
muted
#807F7B

Preview Lab

Preview with #8D8340

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

Preview Lab → · Contrast checker → · Palette generator →

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