#8D891F#8D891F

#8D891F is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.5% C 0.121 H 107.2°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8D891F
RGBrgb(141, 137, 31)
HSLhsl(58, 64%, 34%)
HSVhsv(58, 78%, 55%)
CMYKcmyk(0%, 2.8%, 78%, 44.7%)
CIE-LABlab(55.74, -10.95, 53.04)
CIE-LCHlch(55.74, 54.16, 101.66°)
OKLaboklab(61.47% -0.036 0.1159)
OKLCHoklch(61.47% 0.121 107.2)
XYZxyz(20.1783, 23.6537, 4.7988)
Luminance0.2365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D891F #1F238D
analogous
#8D521F #8D891F #5A8D1F
triadic
#8D891F #1F8D89 #891F8D
tetradic
#8D891F #1F8D52 #1F238D #8D1F5A
square
#8D891F #1F8D52 #1F238D #8D1F5A
split-complementary
#8D891F #1F5A8D #521F8D
monochromatic
#292809 #5B5814 #8D891F #BFBA2A #D8D34E

Accessibility & contrast

On white

3.66
#8D891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#8D891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D891F
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D891F#FFFFFF#000000##000000
##8D891F1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#958304
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#987F75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d891f;
/* rgb */ color: rgb(141, 137, 31);
/* oklch */ color: oklch(61.5% 0.121 107.2);
Tailwind
colors: {
  custom: {
    50: '#b2ab64',
    500: '#8d891f',
    950: '#000000',
  },
}
SCSS
$custom: #8d891f;
$custom-light: #b2ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#8d891f",
  "rgb": {
    "r": 141,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 57.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61469,
    "c": 0.12138,
    "h": 107.2
  },
  "luminance": 0.23653
}

Semantic roles & 50–950 ramp

primary
#8D891F
secondary
#4D51BB
accent
#47E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D891F

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

Preview Lab → · Contrast checker → · Palette generator →

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