#8D8521#8D8521

#8D8521 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.6% C 0.116 H 104.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8D8521
RGBrgb(141, 133, 33)
HSLhsl(56, 62%, 34%)
HSVhsv(56, 77%, 55%)
CMYKcmyk(0%, 5.7%, 76.6%, 44.7%)
CIE-LABlab(54.60, -8.69, 51.30)
CIE-LCHlch(54.60, 52.03, 99.62°)
OKLaboklab(60.57% -0.0295 0.1126)
OKLCHoklch(60.57% 0.116 104.7)
XYZxyz(19.6474, 22.5484, 4.7559)
Luminance0.2255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8521 #21298D
analogous
#8D4F21 #8D8521 #5F8D21
triadic
#8D8521 #218D85 #85218D
tetradic
#8D8521 #218D4F #21298D #8D215F
square
#8D8521 #218D4F #21298D #8D215F
split-complementary
#8D8521 #215F8D #4F218D
monochromatic
#2A270A #5B5615 #8D8521 #BFB42D #D6CD52

Accessibility & contrast

On white

3.81
#8D8521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8D8521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8521
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8521#FFFFFF#000000##000000
##8D85211.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800C
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#987B72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8d8521;
/* rgb */ color: rgb(141, 133, 33);
/* oklch */ color: oklch(60.6% 0.116 104.7);
Tailwind
colors: {
  custom: {
    50: '#b2a865',
    500: '#8d8521',
    950: '#000000',
  },
}
SCSS
$custom: #8d8521;
$custom-light: #b2a865;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8521",
  "rgb": {
    "r": 141,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 55.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60568,
    "c": 0.1164,
    "h": 104.7
  },
  "luminance": 0.22548
}

Semantic roles & 50–950 ramp

primary
#8D8521
secondary
#5058BA
accent
#4FE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D8521

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

Preview Lab → · Contrast checker → · Palette generator →

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