#8D8342#8D8342

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

Color values

HEX#8D8342
RGBrgb(141, 131, 66)
HSLhsl(52, 36%, 41%)
HSVhsv(52, 53%, 55%)
CMYKcmyk(0%, 7.1%, 53.2%, 44.7%)
CIE-LABlab(54.33, -5.34, 36.13)
CIE-LCHlch(54.33, 36.52, 98.41°)
OKLaboklab(60.45% -0.0161 0.0854)
OKLCHoklch(60.45% 0.087 100.7)
XYZxyz(20.0848, 22.2894, 8.3975)
Luminance0.2229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8342 #424C8D
analogous
#8D5D42 #8D8342 #718D42
triadic
#8D8342 #428D83 #83428D
tetradic
#8D8342 #428D5D #424C8D #8D4271
square
#8D8342 #428D5D #424C8D #8D4271
split-complementary
#8D8342 #42718D #5D428D
monochromatic
#3A361B #635C2E #8D8342 #B2A65A #C5BD84

Accessibility & contrast

On white

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

On black

5.46
#8D8342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8342
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8342#FFFFFF#000000##000000
##8D83421.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d8342;
/* rgb */ color: rgb(141, 131, 66);
/* oklch */ color: oklch(60.4% 0.087 100.7);
Tailwind
colors: {
  custom: {
    50: '#b0a678',
    500: '#8d8342',
    950: '#000000',
  },
}
SCSS
$custom: #8d8342;
$custom-light: #b0a678;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8342",
  "rgb": {
    "r": 141,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 52,
    "s": 36.232,
    "l": 40.588
  },
  "oklch": {
    "l": 0.60448,
    "c": 0.08688,
    "h": 100.7
  },
  "luminance": 0.22289
}

Semantic roles & 50–950 ramp

primary
#8D8342
secondary
#7B82B0
accent
#6BCC5C
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#110F09
muted
#807F7B

Preview Lab

Preview with #8D8342

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

Preview Lab → · Contrast checker → · Palette generator →

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