#8B871F#8B871F

#8B871F is a mid, moderate 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#8B871F
RGBrgb(139, 135, 31)
HSLhsl(58, 64%, 33%)
HSVhsv(58, 78%, 55%)
CMYKcmyk(0%, 2.9%, 77.7%, 45.5%)
CIE-LABlab(54.99, -10.78, 52.29)
CIE-LCHlch(54.99, 53.39, 101.65°)
OKLaboklab(60.83% -0.0354 0.1144)
OKLCHoklch(60.83% 0.12 107.2)
XYZxyz(19.5595, 22.9165, 4.6891)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B871F #1F238B
analogous
#8B511F #8B871F #598B1F
triadic
#8B871F #1F8B87 #871F8B
tetradic
#8B871F #1F8B51 #1F238B #8B1F59
square
#8B871F #1F8B51 #1F238B #8B1F59
split-complementary
#8B871F #1F598B #511F8B
monochromatic
#272609 #595614 #8B871F #BDB82A #D7D24D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #8b871f;
/* rgb */ color: rgb(139, 135, 31);
/* oklch */ color: oklch(60.8% 0.120 107.2);
Tailwind
colors: {
  custom: {
    50: '#b0a964',
    500: '#8b871f',
    950: '#000000',
  },
}
SCSS
$custom: #8b871f;
$custom-light: #b0a964;
$custom-dark: #000000;
JSON
{
  "hex": "#8b871f",
  "rgb": {
    "r": 139,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 57.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60826,
    "c": 0.11975,
    "h": 107.2
  },
  "luminance": 0.22916
}

Semantic roles & 50–950 ramp

primary
#8B871F
secondary
#4C50BA
accent
#47E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B871F

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

Preview Lab → · Contrast checker → · Palette generator →

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