#8D8322#8D8322

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

Color values

HEX#8D8322
RGBrgb(141, 131, 34)
HSLhsl(54, 61%, 34%)
HSVhsv(54, 76%, 55%)
CMYKcmyk(0%, 7.1%, 75.9%, 44.7%)
CIE-LABlab(54.04, -7.55, 50.40)
CIE-LCHlch(54.04, 50.96, 98.52°)
OKLaboklab(60.12% -0.0262 0.1109)
OKLCHoklch(60.12% 0.114 103.3)
XYZxyz(19.3904, 22.0116, 4.7404)
Luminance0.2201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8322 #222C8D
analogous
#8D4E22 #8D8322 #618D22
triadic
#8D8322 #228D83 #83228D
tetradic
#8D8322 #228D4E #222C8D #8D2261
square
#8D8322 #228D4E #222C8D #8D2261
split-complementary
#8D8322 #22618D #4E228D
monochromatic
#2A270A #5C5516 #8D8322 #BEB12E #D6CA54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D8322#FFFFFF#000000##000000
##8D83221.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)
#8F7F0F
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#987970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8d8322;
/* rgb */ color: rgb(141, 131, 34);
/* oklch */ color: oklch(60.1% 0.114 103.3);
Tailwind
colors: {
  custom: {
    50: '#b2a665',
    500: '#8d8322',
    950: '#000000',
  },
}
SCSS
$custom: #8d8322;
$custom-light: #b2a665;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8322",
  "rgb": {
    "r": 141,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 54.393,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60121,
    "c": 0.11394,
    "h": 103.3
  },
  "luminance": 0.22011
}

Semantic roles & 50–950 ramp

primary
#8D8322
secondary
#515BB9
accent
#53E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D8322

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

Preview Lab → · Contrast checker → · Palette generator →

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