#8D8221#8D8221

#8D8221 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.9% C 0.114 H 102.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8D8221
RGBrgb(141, 130, 33)
HSLhsl(54, 62%, 34%)
HSVhsv(54, 77%, 55%)
CMYKcmyk(0%, 7.8%, 76.6%, 44.7%)
CIE-LABlab(53.75, -7.05, 50.49)
CIE-LCHlch(53.75, 50.98, 97.95°)
OKLaboklab(59.89% -0.0248 0.1109)
OKLCHoklch(59.89% 0.114 102.6)
XYZxyz(19.2425, 21.7386, 4.6209)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8221 #212C8D
analogous
#8D4C21 #8D8221 #628D21
triadic
#8D8221 #218D82 #82218D
tetradic
#8D8221 #218D4C #212C8D #8D2162
square
#8D8221 #218D4C #212C8D #8D2162
split-complementary
#8D8221 #21628D #4C218D
monochromatic
#2A270A #5B5415 #8D8221 #BFB02D #D6C952

Accessibility & contrast

On white

3.93
#8D8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8D8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8221
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8221#FFFFFF#000000##000000
##8D82211.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E0E
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#98786F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8d8221;
/* rgb */ color: rgb(141, 130, 33);
/* oklch */ color: oklch(59.9% 0.114 102.6);
Tailwind
colors: {
  custom: {
    50: '#b2a664',
    500: '#8d8221',
    950: '#000000',
  },
}
SCSS
$custom: #8d8221;
$custom-light: #b2a664;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8221",
  "rgb": {
    "r": 141,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 53.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59888,
    "c": 0.11365,
    "h": 102.6
  },
  "luminance": 0.21738
}

Semantic roles & 50–950 ramp

primary
#8D8221
secondary
#505BBA
accent
#53E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D8221

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

Preview Lab → · Contrast checker → · Palette generator →

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