#8B871E#8B871E

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

Color values

HEX#8B871E
RGBrgb(139, 135, 30)
HSLhsl(58, 64%, 33%)
HSVhsv(58, 78%, 55%)
CMYKcmyk(0%, 2.9%, 78.4%, 45.5%)
CIE-LABlab(54.98, -10.82, 52.62)
CIE-LCHlch(54.98, 53.72, 101.62°)
OKLaboklab(60.82% -0.0356 0.1149)
OKLCHoklch(60.82% 0.12 107.2)
XYZxyz(19.5466, 22.9113, 4.6207)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B871E #1E228B
analogous
#8B501E #8B871E #588B1E
triadic
#8B871E #1E8B87 #871E8B
tetradic
#8B871E #1E8B50 #1E228B #8B1E58
square
#8B871E #1E8B50 #1E228B #8B1E58
split-complementary
#8B871E #1E588B #501E8B
monochromatic
#262508 #595613 #8B871E #BDB829 #D8D34B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B871E#FFFFFF#000000##000000
##8B871E1.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)
#938103
Deuteranopia (green-blind)
#958527
Tritanopia (blue-blind)
#967E73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8b871e;
/* rgb */ color: rgb(139, 135, 30);
/* oklch */ color: oklch(60.8% 0.120 107.2);
Tailwind
colors: {
  custom: {
    50: '#b0a963',
    500: '#8b871e',
    950: '#000000',
  },
}
SCSS
$custom: #8b871e;
$custom-light: #b0a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8b871e",
  "rgb": {
    "r": 139,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 57.798,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.6082,
    "c": 0.12031,
    "h": 107.2
  },
  "luminance": 0.22911
}

Semantic roles & 50–950 ramp

primary
#8B871E
secondary
#4A4EBB
accent
#46E740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B871E

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

Preview Lab → · Contrast checker → · Palette generator →

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