#8A861B#8A861B

#8A861B is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.5% C 0.121 H 107.3°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A861B
RGBrgb(138, 134, 27)
HSLhsl(58, 67%, 32%)
HSVhsv(58, 80%, 54%)
CMYKcmyk(0%, 2.9%, 80.4%, 45.9%)
CIE-LABlab(54.59, -10.86, 53.21)
CIE-LCHlch(54.59, 54.30, 101.54°)
OKLaboklab(60.48% -0.0359 0.1156)
OKLCHoklch(60.48% 0.121 107.3)
XYZxyz(19.2050, 22.5333, 4.3744)
Luminance0.2253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A861B #1B1F8A
analogous
#8A4F1B #8A861B #568A1B
triadic
#8A861B #1B8A86 #861B8A
tetradic
#8A861B #1B8A4F #1B1F8A #8A1B56
square
#8A861B #1B8A4F #1B1F8A #8A1B56
split-complementary
#8A861B #1B568A #4F1B8A
monochromatic
#242307 #575411 #8A861B #BDB825 #DBD545

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A861B#FFFFFF#000000##000000
##8A861B1.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)
#928000
Deuteranopia (green-blind)
#948424
Tritanopia (blue-blind)
#957D72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a861b;
/* rgb */ color: rgb(138, 134, 27);
/* oklch */ color: oklch(60.5% 0.121 107.3);
Tailwind
colors: {
  custom: {
    50: '#b0a862',
    500: '#8a861b',
    950: '#000000',
  },
}
SCSS
$custom: #8a861b;
$custom-light: #b0a862;
$custom-dark: #000000;
JSON
{
  "hex": "#8a861b",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 27
  },
  "hsl": {
    "h": 57.838,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.6048,
    "c": 0.12107,
    "h": 107.3
  },
  "luminance": 0.22533
}

Semantic roles & 50–950 ramp

primary
#8A861B
secondary
#4549BC
accent
#44EA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A861B

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

Preview Lab → · Contrast checker → · Palette generator →

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