#8B871B#8B871B

#8B871B 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#8B871B
RGBrgb(139, 135, 27)
HSLhsl(58, 67%, 33%)
HSVhsv(58, 81%, 55%)
CMYKcmyk(0%, 2.9%, 80.6%, 45.5%)
CIE-LABlab(54.97, -10.94, 53.57)
CIE-LCHlch(54.97, 54.68, 101.54°)
OKLaboklab(60.8% -0.0362 0.1164)
OKLCHoklch(60.8% 0.122 107.3)
XYZxyz(19.5101, 22.8967, 4.4285)
Luminance0.2290 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B871B #1B1F8B
analogous
#8B4F1B #8B871B #578B1B
triadic
#8B871B #1B8B87 #871B8B
tetradic
#8B871B #1B8B4F #1B1F8B #8B1B57
square
#8B871B #1B8B4F #1B1F8B #8B1B57
split-complementary
#8B871B #1B578B #4F1B8B
monochromatic
#252307 #585511 #8B871B #BEB925 #DBD645

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B871B#FFFFFF#000000##000000
##8B871B1.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)
#967E73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8b871b;
/* rgb */ color: rgb(139, 135, 27);
/* oklch */ color: oklch(60.8% 0.122 107.3);
Tailwind
colors: {
  custom: {
    50: '#b0a962',
    500: '#8b871b',
    950: '#000000',
  },
}
SCSS
$custom: #8b871b;
$custom-light: #b0a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8b871b",
  "rgb": {
    "r": 139,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 57.857,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60803,
    "c": 0.12187,
    "h": 107.3
  },
  "luminance": 0.22896
}

Semantic roles & 50–950 ramp

primary
#8B871B
secondary
#454ABC
accent
#44EA3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B871B

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

Preview Lab → · Contrast checker → · Palette generator →

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