#8B8417#8B8417

#8B8417 is a mid, vivid yellow. Relative luminance 0.221; OKLCH L 60.1% C 0.121 H 105.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8B8417
RGBrgb(139, 132, 23)
HSLhsl(56, 72%, 32%)
HSVhsv(56, 83%, 55%)
CMYKcmyk(0%, 5%, 83.5%, 45.5%)
CIE-LABlab(54.08, -9.46, 54.00)
CIE-LCHlch(54.08, 54.82, 99.93°)
OKLaboklab(60.09% -0.0324 0.1165)
OKLCHoklch(60.09% 0.121 105.5)
XYZxyz(19.0542, 22.0541, 4.0636)
Luminance0.2205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8417 #171E8B
analogous
#8B4A17 #8B8417 #588B17
triadic
#8B8417 #178B84 #84178B
tetradic
#8B8417 #178B4A #171E8B #8B1758
square
#8B8417 #178B4A #171E8B #8B1758
split-complementary
#8B8417 #17588B #4A178B
monochromatic
#222006 #56520E #8B8417 #C0B620 #DFD53D

Accessibility & contrast

On white

3.88
#8B8417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8B8417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8417
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8417#FFFFFF#000000##000000
##8B84171.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#938321
Tritanopia (blue-blind)
#967A70
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8b8417;
/* rgb */ color: rgb(139, 132, 23);
/* oklch */ color: oklch(60.1% 0.121 105.5);
Tailwind
colors: {
  custom: {
    50: '#b1a760',
    500: '#8b8417',
    950: '#000000',
  },
}
SCSS
$custom: #8b8417;
$custom-light: #b1a760;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8417",
  "rgb": {
    "r": 139,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 56.379,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60094,
    "c": 0.12092,
    "h": 105.5
  },
  "luminance": 0.22053
}

Semantic roles & 50–950 ramp

primary
#8B8417
secondary
#3F47BF
accent
#44EE39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8B8417

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

Preview Lab → · Contrast checker → · Palette generator →

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