#8A871D#8A871D

#8A871D is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.7% C 0.121 H 107.8°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8A871D
RGBrgb(138, 135, 29)
HSLhsl(58, 65%, 33%)
HSVhsv(58, 79%, 54%)
CMYKcmyk(0%, 2.2%, 79%, 45.9%)
CIE-LABlab(54.89, -11.32, 52.83)
CIE-LCHlch(54.89, 54.03, 102.09°)
OKLaboklab(60.72% -0.037 0.1152)
OKLCHoklch(60.72% 0.121 107.8)
XYZxyz(19.3678, 22.8206, 4.5468)
Luminance0.2282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A871D #1D208A
analogous
#8A511D #8A871D #568A1D
triadic
#8A871D #1D8A87 #871D8A
tetradic
#8A871D #1D8A51 #1D208A #8A1D56
square
#8A871D #1D8A51 #1D208A #8A1D56
split-complementary
#8A871D #1D568A #511D8A
monochromatic
#252408 #575612 #8A871D #BDB828 #D9D549

Accessibility & contrast

On white

3.77
#8A871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#8A871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A871D
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A871D#FFFFFF#000000##000000
##8A871D1.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938101
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#947E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a871d;
/* rgb */ color: rgb(138, 135, 29);
/* oklch */ color: oklch(60.7% 0.121 107.8);
Tailwind
colors: {
  custom: {
    50: '#b0a963',
    500: '#8a871d',
    950: '#000000',
  },
}
SCSS
$custom: #8a871d;
$custom-light: #b0a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8a871d",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 58.349,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60722,
    "c": 0.12103,
    "h": 107.8
  },
  "luminance": 0.2282
}

Semantic roles & 50–950 ramp

primary
#8A871D
secondary
#484BBB
accent
#44E840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A871D

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

Preview Lab → · Contrast checker → · Palette generator →

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