#8B891F#8B891F

#8B891F is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.3% C 0.122 H 108.4°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8B891F
RGBrgb(139, 137, 31)
HSLhsl(59, 64%, 33%)
HSVhsv(59, 78%, 55%)
CMYKcmyk(0%, 1.4%, 77.7%, 45.5%)
CIE-LABlab(55.56, -11.86, 52.82)
CIE-LCHlch(55.56, 54.13, 102.65°)
OKLaboklab(61.29% -0.0384 0.1155)
OKLCHoklch(61.29% 0.122 108.4)
XYZxyz(19.8412, 23.4799, 4.7830)
Luminance0.2348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B891F #1F218B
analogous
#8B531F #8B891F #578B1F
triadic
#8B891F #1F8B89 #891F8B
tetradic
#8B891F #1F8B53 #1F218B #8B1F57
square
#8B891F #1F8B53 #1F218B #8B1F57
split-complementary
#8B891F #1F578B #531F8B
monochromatic
#272609 #595814 #8B891F #BDBA2A #D7D54D

Accessibility & contrast

On white

3.69
#8B891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#8B891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B891F
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B891F#FFFFFF#000000##000000
##8B891F1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958305
Deuteranopia (green-blind)
#968728
Tritanopia (blue-blind)
#958075
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8b891f;
/* rgb */ color: rgb(139, 137, 31);
/* oklch */ color: oklch(61.3% 0.122 108.4);
Tailwind
colors: {
  custom: {
    50: '#b0ab64',
    500: '#8b891f',
    950: '#000000',
  },
}
SCSS
$custom: #8b891f;
$custom-light: #b0ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#8b891f",
  "rgb": {
    "r": 139,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 58.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61286,
    "c": 0.12175,
    "h": 108.4
  },
  "luminance": 0.23479
}

Semantic roles & 50–950 ramp

primary
#8B891F
secondary
#4C4EBA
accent
#44E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B891F

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

Preview Lab → · Contrast checker → · Palette generator →

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