#8A861F#8A861F

#8A861F is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.5% C 0.119 H 107.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A861F
RGBrgb(138, 134, 31)
HSLhsl(58, 63%, 33%)
HSVhsv(58, 78%, 54%)
CMYKcmyk(0%, 2.9%, 77.5%, 45.9%)
CIE-LABlab(54.61, -10.70, 51.91)
CIE-LCHlch(54.61, 53.00, 101.64°)
OKLaboklab(60.5% -0.0351 0.1136)
OKLCHoklch(60.5% 0.119 107.2)
XYZxyz(19.2544, 22.5531, 4.6350)
Luminance0.2255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A861F #1F238A
analogous
#8A501F #8A861F #588A1F
triadic
#8A861F #1F8A86 #861F8A
tetradic
#8A861F #1F8A50 #1F238A #8A1F58
square
#8A861F #1F8A50 #1F238A #8A1F58
split-complementary
#8A861F #1F588A #501F8A
monochromatic
#262509 #585514 #8A861F #BCB72A #D7D24C

Accessibility & contrast

On white

3.81
#8A861F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8A861F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A861F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A861F#FFFFFF#000000##000000
##8A861F1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928106
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#957D73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a861f;
/* rgb */ color: rgb(138, 134, 31);
/* oklch */ color: oklch(60.5% 0.119 107.2);
Tailwind
colors: {
  custom: {
    50: '#b0a864',
    500: '#8a861f',
    950: '#000000',
  },
}
SCSS
$custom: #8a861f;
$custom-light: #b0a864;
$custom-dark: #000000;
JSON
{
  "hex": "#8a861f",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 57.757,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60503,
    "c": 0.11894,
    "h": 107.2
  },
  "luminance": 0.22552
}

Semantic roles & 50–950 ramp

primary
#8A861F
secondary
#4B4FBA
accent
#48E641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A861F

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

Preview Lab → · Contrast checker → · Palette generator →

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