#8B871A#8B871A

#8B871A is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.8% C 0.122 H 107.3°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8B871A
RGBrgb(139, 135, 26)
HSLhsl(58, 68%, 32%)
HSVhsv(58, 81%, 55%)
CMYKcmyk(0%, 2.9%, 81.3%, 45.5%)
CIE-LABlab(54.96, -10.98, 53.88)
CIE-LCHlch(54.96, 54.99, 101.52°)
OKLaboklab(60.8% -0.0364 0.1168)
OKLCHoklch(60.8% 0.122 107.3)
XYZxyz(19.4987, 22.8922, 4.3686)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B871A #1A1E8B
analogous
#8B4E1A #8B871A #578B1A
triadic
#8B871A #1A8B87 #871A8B
tetradic
#8B871A #1A8B4E #1A1E8B #8B1A57
square
#8B871A #1A8B4E #1A1E8B #8B1A57
split-complementary
#8B871A #1A578B #4E1A8B
monochromatic
#242307 #575510 #8B871A #BFB924 #DCD743

Accessibility & contrast

On white

3.76
#8B871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#8B871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B871A
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B871A#FFFFFF#000000##000000
##8B871A1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#967D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8b871a;
/* rgb */ color: rgb(139, 135, 26);
/* oklch */ color: oklch(60.8% 0.122 107.3);
Tailwind
colors: {
  custom: {
    50: '#b0a962',
    500: '#8b871a',
    950: '#000000',
  },
}
SCSS
$custom: #8b871a;
$custom-light: #b0a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8b871a",
  "rgb": {
    "r": 139,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 57.876,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60798,
    "c": 0.12236,
    "h": 107.3
  },
  "luminance": 0.22891
}

Semantic roles & 50–950 ramp

primary
#8B871A
secondary
#4448BD
accent
#43EB3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B871A

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

Preview Lab → · Contrast checker → · Palette generator →

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