#8A891F#8A891F

#8A891F is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.2% C 0.122 H 109.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A891F
RGBrgb(138, 137, 31)
HSLhsl(59, 63%, 33%)
HSVhsv(59, 78%, 54%)
CMYKcmyk(0%, 0.7%, 77.5%, 45.9%)
CIE-LABlab(55.48, -12.31, 52.70)
CIE-LCHlch(55.48, 54.12, 103.15°)
OKLaboklab(61.2% -0.0396 0.1153)
OKLCHoklch(61.2% 0.122 109)
XYZxyz(19.6750, 23.3941, 4.7752)
Luminance0.2339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A891F #1F208A
analogous
#8A531F #8A891F #558A1F
triadic
#8A891F #1F8A89 #891F8A
tetradic
#8A891F #1F8A53 #1F208A #8A1F55
square
#8A891F #1F8A53 #1F208A #8A1F55
split-complementary
#8A891F #1F558A #531F8A
monochromatic
#262609 #585714 #8A891F #BCBB2A #D7D64C

Accessibility & contrast

On white

3.70
#8A891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8A891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A891F
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A891F#FFFFFF#000000##000000
##8A891F1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a891f;
/* rgb */ color: rgb(138, 137, 31);
/* oklch */ color: oklch(61.2% 0.122 109.0);
Tailwind
colors: {
  custom: {
    50: '#b0ab64',
    500: '#8a891f',
    950: '#000000',
  },
}
SCSS
$custom: #8a891f;
$custom-light: #b0ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#8a891f",
  "rgb": {
    "r": 138,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 59.439,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61195,
    "c": 0.12196,
    "h": 109
  },
  "luminance": 0.23394
}

Semantic roles & 50–950 ramp

primary
#8A891F
secondary
#4B4CBA
accent
#43E641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A891F

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

Preview Lab → · Contrast checker → · Palette generator →

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