#8D8321#8D8321

#8D8321 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.1% C 0.115 H 103.3°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8D8321
RGBrgb(141, 131, 33)
HSLhsl(54, 62%, 34%)
HSVhsv(54, 77%, 55%)
CMYKcmyk(0%, 7.1%, 76.6%, 44.7%)
CIE-LABlab(54.03, -7.60, 50.76)
CIE-LCHlch(54.03, 51.33, 98.51°)
OKLaboklab(60.11% -0.0264 0.1115)
OKLCHoklch(60.11% 0.115 103.3)
XYZxyz(19.3762, 22.0059, 4.6655)
Luminance0.2200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8321 #212B8D
analogous
#8D4D21 #8D8321 #618D21
triadic
#8D8321 #218D83 #83218D
tetradic
#8D8321 #218D4D #212B8D #8D2161
square
#8D8321 #218D4D #212B8D #8D2161
split-complementary
#8D8321 #21618D #4D218D
monochromatic
#2A270A #5B5515 #8D8321 #BFB12D #D6CA52

Accessibility & contrast

On white

3.89
#8D8321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#8D8321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8321
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8321#FFFFFF#000000##000000
##8D83211.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F0D
Deuteranopia (green-blind)
#938328
Tritanopia (blue-blind)
#987970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8d8321;
/* rgb */ color: rgb(141, 131, 33);
/* oklch */ color: oklch(60.1% 0.115 103.3);
Tailwind
colors: {
  custom: {
    50: '#b2a664',
    500: '#8d8321',
    950: '#000000',
  },
}
SCSS
$custom: #8d8321;
$custom-light: #b2a664;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8321",
  "rgb": {
    "r": 141,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 54.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60114,
    "c": 0.11455,
    "h": 103.3
  },
  "luminance": 0.22005
}

Semantic roles & 50–950 ramp

primary
#8D8321
secondary
#505ABA
accent
#52E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D8321

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

Preview Lab → · Contrast checker → · Palette generator →

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