#8A871C#8A871C

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

Color values

HEX#8A871C
RGBrgb(138, 135, 28)
HSLhsl(58, 66%, 33%)
HSVhsv(58, 80%, 54%)
CMYKcmyk(0%, 2.2%, 79.7%, 45.9%)
CIE-LABlab(54.88, -11.36, 53.15)
CIE-LCHlch(54.88, 54.35, 102.06°)
OKLaboklab(60.72% -0.0372 0.1157)
OKLCHoklch(60.72% 0.122 107.8)
XYZxyz(19.3556, 22.8157, 4.4827)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A871C #1C1F8A
analogous
#8A501C #8A871C #568A1C
triadic
#8A871C #1C8A87 #871C8A
tetradic
#8A871C #1C8A50 #1C1F8A #8A1C56
square
#8A871C #1C8A50 #1C1F8A #8A1C56
split-complementary
#8A871C #1C568A #501C8A
monochromatic
#242307 #575512 #8A871C #BDB926 #DAD647

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A871C#FFFFFF#000000##000000
##8A871C1.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)
#938100
Deuteranopia (green-blind)
#958525
Tritanopia (blue-blind)
#957E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a871c;
/* rgb */ color: rgb(138, 135, 28);
/* oklch */ color: oklch(60.7% 0.122 107.8);
Tailwind
colors: {
  custom: {
    50: '#b0a962',
    500: '#8a871c',
    950: '#000000',
  },
}
SCSS
$custom: #8a871c;
$custom-light: #b0a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8a871c",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 58.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60716,
    "c": 0.12155,
    "h": 107.8
  },
  "luminance": 0.22815
}

Semantic roles & 50–950 ramp

primary
#8A871C
secondary
#464ABB
accent
#43E93F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A871C

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

Preview Lab → · Contrast checker → · Palette generator →

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