#8B8221#8B8221

#8B8221 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.7% C 0.114 H 103.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8B8221
RGBrgb(139, 130, 33)
HSLhsl(55, 62%, 34%)
HSVhsv(55, 76%, 55%)
CMYKcmyk(0%, 6.5%, 76.3%, 45.5%)
CIE-LABlab(53.56, -7.97, 50.25)
CIE-LCHlch(53.56, 50.88, 99.01°)
OKLaboklab(59.7% -0.0273 0.1105)
OKLCHoklch(59.7% 0.114 103.9)
XYZxyz(18.9054, 21.5648, 4.6051)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8221 #212A8B
analogous
#8B4D21 #8B8221 #5F8B21
triadic
#8B8221 #218B82 #82218B
tetradic
#8B8221 #218B4D #212A8B #8B215F
square
#8B8221 #218B4D #212A8B #8B215F
split-complementary
#8B8221 #215F8B #4D218B
monochromatic
#28250A #5A5415 #8B8221 #BCB02D #D6CA51

Accessibility & contrast

On white

3.95
#8B8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8B8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8221
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8221#FFFFFF#000000##000000
##8B82211.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0E
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#96796F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8b8221;
/* rgb */ color: rgb(139, 130, 33);
/* oklch */ color: oklch(59.7% 0.114 103.9);
Tailwind
colors: {
  custom: {
    50: '#b0a664',
    500: '#8b8221',
    950: '#000000',
  },
}
SCSS
$custom: #8b8221;
$custom-light: #b0a664;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8221",
  "rgb": {
    "r": 139,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 54.906,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59695,
    "c": 0.1138,
    "h": 103.9
  },
  "luminance": 0.21564
}

Semantic roles & 50–950 ramp

primary
#8B8221
secondary
#4F58B9
accent
#51E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8221

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

Preview Lab → · Contrast checker → · Palette generator →

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