#8B8B1B#8B8B1B

#8B8B1B is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.126 H 109.6°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8B8B1B
RGBrgb(139, 139, 27)
HSLhsl(60, 67%, 33%)
HSVhsv(60, 81%, 55%)
CMYKcmyk(0%, 0%, 80.6%, 45.5%)
CIE-LABlab(56.12, -13.09, 54.60)
CIE-LCHlch(56.12, 56.15, 103.48°)
OKLaboklab(61.73% -0.0422 0.1186)
OKLCHoklch(61.73% 0.126 109.6)
XYZxyz(20.0787, 24.0340, 4.6180)
Luminance0.2403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8B1B #1B1B8B
analogous
#8B531B #8B8B1B #538B1B
triadic
#8B8B1B #1B8B8B #8B1B8B
tetradic
#8B8B1B #1B8B53 #1B1B8B #8B1B53
square
#8B8B1B #1B8B53 #1B1B8B #8B1B53
split-complementary
#8B8B1B #1B538B #531B8B
monochromatic
#252507 #585811 #8B8B1B #BEBE25 #DBDB45

Accessibility & contrast

On white

3.62
#8B8B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8B8B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8B1B
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8B1B#FFFFFF#000000##000000
##8B8B1B1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#988825
Tritanopia (blue-blind)
#958277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8b1b;
/* rgb */ color: rgb(139, 139, 27);
/* oklch */ color: oklch(61.7% 0.126 109.6);
Tailwind
colors: {
  custom: {
    50: '#b0ac63',
    500: '#8b8b1b',
    950: '#000000',
  },
}
SCSS
$custom: #8b8b1b;
$custom-light: #b0ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8b1b",
  "rgb": {
    "r": 139,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 60,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61726,
    "c": 0.12585,
    "h": 109.6
  },
  "luminance": 0.24033
}

Semantic roles & 50–950 ramp

primary
#8B8B1B
secondary
#4545BC
accent
#3DEA3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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