#8D7D31#8D7D31

#8D7D31 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.9% C 0.098 H 97.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8D7D31
RGBrgb(141, 125, 49)
HSLhsl(50, 48%, 37%)
HSVhsv(50, 65%, 55%)
CMYKcmyk(0%, 11.3%, 65.2%, 44.7%)
CIE-LABlab(52.46, -3.37, 42.44)
CIE-LCHlch(52.46, 42.57, 94.54°)
OKLaboklab(58.9% -0.0125 0.0968)
OKLCHoklch(58.9% 0.098 97.4)
XYZxyz(18.8733, 20.5526, 5.8781)
Luminance0.2055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7D31 #31418D
analogous
#8D4F31 #8D7D31 #6F8D31
triadic
#8D7D31 #318D7D #7D318D
tetradic
#8D7D31 #318D4F #31418D #8D316F
square
#8D7D31 #318D4F #31418D #8D316F
split-complementary
#8D7D31 #316F8D #4F318D
monochromatic
#322C11 #605521 #8D7D31 #BAA541 #CCBB6C

Accessibility & contrast

On white

4.11
#8D7D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8D7D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7D31
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7D31#FFFFFF#000000##000000
##8D7D311.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A28
Deuteranopia (green-blind)
#8D7F35
Tritanopia (blue-blind)
#98746D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8d7d31;
/* rgb */ color: rgb(141, 125, 49);
/* oklch */ color: oklch(58.9% 0.098 97.4);
Tailwind
colors: {
  custom: {
    50: '#b1a26d',
    500: '#8d7d31',
    950: '#000000',
  },
}
SCSS
$custom: #8d7d31;
$custom-light: #b1a26d;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7d31",
  "rgb": {
    "r": 141,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 49.565,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.58901,
    "c": 0.09758,
    "h": 97.4
  },
  "luminance": 0.20552
}

Semantic roles & 50–950 ramp

primary
#8D7D31
secondary
#6674B4
accent
#67D850
background
#FBF9F6
surface
#F6F2EC
border
#D0CCC7
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8D7D31

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

Preview Lab → · Contrast checker → · Palette generator →

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