#8D8421#8D8421

#8D8421 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.115 H 104.0°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8D8421
RGBrgb(141, 132, 33)
HSLhsl(55, 62%, 34%)
HSVhsv(55, 77%, 55%)
CMYKcmyk(0%, 6.4%, 76.6%, 44.7%)
CIE-LABlab(54.32, -8.15, 51.03)
CIE-LCHlch(54.32, 51.67, 99.07°)
OKLaboklab(60.34% -0.0279 0.112)
OKLCHoklch(60.34% 0.115 104)
XYZxyz(19.5111, 22.2759, 4.7105)
Luminance0.2228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8421 #212A8D
analogous
#8D4E21 #8D8421 #608D21
triadic
#8D8421 #218D84 #84218D
tetradic
#8D8421 #218D4E #212A8D #8D2160
square
#8D8421 #218D4E #212A8D #8D2160
split-complementary
#8D8421 #21608D #4E218D
monochromatic
#2A270A #5B5615 #8D8421 #BFB22D #D6CB52

Accessibility & contrast

On white

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

On black

5.45
#8D8421 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8421
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8421#FFFFFF#000000##000000
##8D84211.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#987A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8d8421;
/* rgb */ color: rgb(141, 132, 33);
/* oklch */ color: oklch(60.3% 0.115 104.0);
Tailwind
colors: {
  custom: {
    50: '#b2a764',
    500: '#8d8421',
    950: '#000000',
  },
}
SCSS
$custom: #8d8421;
$custom-light: #b2a764;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8421",
  "rgb": {
    "r": 141,
    "g": 132,
    "b": 33
  },
  "hsl": {
    "h": 55,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60341,
    "c": 0.11547,
    "h": 104
  },
  "luminance": 0.22275
}

Semantic roles & 50–950 ramp

primary
#8D8421
secondary
#5059BA
accent
#50E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D8421

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

Preview Lab → · Contrast checker → · Palette generator →

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