#8D7D21#8D7D21

#8D7D21 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.8% C 0.109 H 99.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8D7D21
RGBrgb(141, 125, 33)
HSLhsl(51, 62%, 34%)
HSVhsv(51, 77%, 55%)
CMYKcmyk(0%, 11.3%, 76.6%, 44.7%)
CIE-LABlab(52.33, -4.28, 49.16)
CIE-LCHlch(52.33, 49.34, 94.98°)
OKLaboklab(58.76% -0.017 0.1081)
OKLCHoklch(58.76% 0.109 99)
XYZxyz(18.5936, 20.4407, 4.4046)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7D21 #21318D
analogous
#8D4721 #8D7D21 #678D21
triadic
#8D7D21 #218D7D #7D218D
tetradic
#8D7D21 #218D47 #21318D #8D2167
square
#8D7D21 #218D47 #21318D #8D2167
split-complementary
#8D7D21 #21678D #47218D
monochromatic
#2A250A #5B5115 #8D7D21 #BFA92D #D6C352

Accessibility & contrast

On white

4.13
#8D7D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8D7D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7D21
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7D21#FFFFFF#000000##000000
##8D7D211.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A10
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#98736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8d7d21;
/* rgb */ color: rgb(141, 125, 33);
/* oklch */ color: oklch(58.8% 0.109 99.0);
Tailwind
colors: {
  custom: {
    50: '#b2a264',
    500: '#8d7d21',
    950: '#000000',
  },
}
SCSS
$custom: #8d7d21;
$custom-light: #b2a264;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7d21",
  "rgb": {
    "r": 141,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 51.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58763,
    "c": 0.10939,
    "h": 99
  },
  "luminance": 0.2044
}

Semantic roles & 50–950 ramp

primary
#8D7D21
secondary
#5060BA
accent
#5BE543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8D7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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