#8B871C#8B871C

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

Color values

HEX#8B871C
RGBrgb(139, 135, 28)
HSLhsl(58, 66%, 33%)
HSVhsv(58, 80%, 55%)
CMYKcmyk(0%, 2.9%, 79.9%, 45.5%)
CIE-LABlab(54.97, -10.90, 53.26)
CIE-LCHlch(54.97, 54.37, 101.57°)
OKLaboklab(60.81% -0.036 0.1159)
OKLCHoklch(60.81% 0.121 107.3)
XYZxyz(19.5218, 22.9014, 4.4905)
Luminance0.2290 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B871C #1C208B
analogous
#8B501C #8B871C #578B1C
triadic
#8B871C #1C8B87 #871C8B
tetradic
#8B871C #1C8B50 #1C208B #8B1C57
square
#8B871C #1C8B50 #1C208B #8B1C57
split-complementary
#8B871C #1C578B #501C8B
monochromatic
#252407 #585612 #8B871C #BEB826 #DAD547

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B871C#FFFFFF#000000##000000
##8B871C1.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)
#958525
Tritanopia (blue-blind)
#967E73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8b871c;
/* rgb */ color: rgb(139, 135, 28);
/* oklch */ color: oklch(60.8% 0.121 107.3);
Tailwind
colors: {
  custom: {
    50: '#b0a963',
    500: '#8b871c',
    950: '#000000',
  },
}
SCSS
$custom: #8b871c;
$custom-light: #b0a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8b871c",
  "rgb": {
    "r": 139,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 57.838,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60808,
    "c": 0.12137,
    "h": 107.3
  },
  "luminance": 0.22901
}

Semantic roles & 50–950 ramp

primary
#8B871C
secondary
#474BBC
accent
#45E93E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B871C

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

Preview Lab → · Contrast checker → · Palette generator →

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