#8B831F#8B831F

#8B831F is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.9% C 0.116 H 104.6°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8B831F
RGBrgb(139, 131, 31)
HSLhsl(56, 64%, 33%)
HSVhsv(56, 78%, 55%)
CMYKcmyk(0%, 5.8%, 77.7%, 45.5%)
CIE-LABlab(53.84, -8.61, 51.23)
CIE-LCHlch(53.84, 51.94, 99.54°)
OKLaboklab(59.91% -0.0293 0.1122)
OKLCHoklch(59.91% 0.116 104.6)
XYZxyz(19.0119, 21.8213, 4.5065)
Luminance0.2182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B831F #1F278B
analogous
#8B4D1F #8B831F #5D8B1F
triadic
#8B831F #1F8B83 #831F8B
tetradic
#8B831F #1F8B4D #1F278B #8B1F5D
square
#8B831F #1F8B4D #1F278B #8B1F5D
split-complementary
#8B831F #1F5D8B #4D1F8B
monochromatic
#272509 #595414 #8B831F #BDB22A #D7CD4D

Accessibility & contrast

On white

3.91
#8B831F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#8B831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B831F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B831F#FFFFFF#000000##000000
##8B831F1.003.915.365.36
#FFFFFF3.911.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E08
Deuteranopia (green-blind)
#928327
Tritanopia (blue-blind)
#967A70
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8b831f;
/* rgb */ color: rgb(139, 131, 31);
/* oklch */ color: oklch(59.9% 0.116 104.6);
Tailwind
colors: {
  custom: {
    50: '#b0a663',
    500: '#8b831f',
    950: '#000000',
  },
}
SCSS
$custom: #8b831f;
$custom-light: #b0a663;
$custom-dark: #000000;
JSON
{
  "hex": "#8b831f",
  "rgb": {
    "r": 139,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 55.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5991,
    "c": 0.11592,
    "h": 104.6
  },
  "luminance": 0.2182
}

Semantic roles & 50–950 ramp

primary
#8B831F
secondary
#4C54BA
accent
#4DE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B831F

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

Preview Lab → · Contrast checker → · Palette generator →

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