#8B8521#8B8521

#8B8521 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.4% C 0.117 H 105.9°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8B8521
RGBrgb(139, 133, 33)
HSLhsl(57, 62%, 34%)
HSVhsv(57, 76%, 55%)
CMYKcmyk(0%, 4.3%, 76.3%, 45.5%)
CIE-LABlab(54.42, -9.61, 51.06)
CIE-LCHlch(54.42, 51.96, 100.66°)
OKLaboklab(60.38% -0.0319 0.1122)
OKLCHoklch(60.38% 0.117 105.9)
XYZxyz(19.3103, 22.3746, 4.7401)
Luminance0.2237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8521 #21278B
analogous
#8B5021 #8B8521 #5C8B21
triadic
#8B8521 #218B85 #85218B
tetradic
#8B8521 #218B50 #21278B #8B215C
square
#8B8521 #218B50 #21278B #8B215C
split-complementary
#8B8521 #215C8B #50218B
monochromatic
#28260A #5A5615 #8B8521 #BCB42D #D6CE51

Accessibility & contrast

On white

3.84
#8B8521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#8B8521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8521
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8521#FFFFFF#000000##000000
##8B85211.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800C
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#967C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8b8521;
/* rgb */ color: rgb(139, 133, 33);
/* oklch */ color: oklch(60.4% 0.117 105.9);
Tailwind
colors: {
  custom: {
    50: '#b0a865',
    500: '#8b8521',
    950: '#000000',
  },
}
SCSS
$custom: #8b8521;
$custom-light: #b0a865;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8521",
  "rgb": {
    "r": 139,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 56.604,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.6038,
    "c": 0.11665,
    "h": 105.9
  },
  "luminance": 0.22374
}

Semantic roles & 50–950 ramp

primary
#8B8521
secondary
#4F55B9
accent
#4CE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8521

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

Preview Lab → · Contrast checker → · Palette generator →

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