#8B8321#8B8321

#8B8321 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.9% C 0.115 H 104.6°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8B8321
RGBrgb(139, 131, 33)
HSLhsl(55, 62%, 34%)
HSVhsv(55, 76%, 55%)
CMYKcmyk(0%, 5.8%, 76.3%, 45.5%)
CIE-LABlab(53.85, -8.52, 50.52)
CIE-LCHlch(53.85, 51.23, 99.57°)
OKLaboklab(59.92% -0.0289 0.1111)
OKLCHoklch(59.92% 0.115 104.6)
XYZxyz(19.0391, 21.8321, 4.6497)
Luminance0.2183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8321 #21298B
analogous
#8B4E21 #8B8321 #5E8B21
triadic
#8B8321 #218B83 #83218B
tetradic
#8B8321 #218B4E #21298B #8B215E
square
#8B8321 #218B4E #21298B #8B215E
split-complementary
#8B8321 #215E8B #4E218B
monochromatic
#28260A #5A5415 #8B8321 #BCB22D #D6CC51

Accessibility & contrast

On white

3.91
#8B8321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#8B8321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8321
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8321#FFFFFF#000000##000000
##8B83211.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0D
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#967A70
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8b8321;
/* rgb */ color: rgb(139, 131, 33);
/* oklch */ color: oklch(59.9% 0.115 104.6);
Tailwind
colors: {
  custom: {
    50: '#b0a664',
    500: '#8b8321',
    950: '#000000',
  },
}
SCSS
$custom: #8b8321;
$custom-light: #b0a664;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8321",
  "rgb": {
    "r": 139,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 55.472,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59923,
    "c": 0.11474,
    "h": 104.6
  },
  "luminance": 0.21831
}

Semantic roles & 50–950 ramp

primary
#8B8321
secondary
#4F57B9
accent
#4FE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8321

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

Preview Lab → · Contrast checker → · Palette generator →

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