#8A871A#8A871A

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

Color values

HEX#8A871A
RGBrgb(138, 135, 26)
HSLhsl(58, 68%, 32%)
HSVhsv(58, 81%, 54%)
CMYKcmyk(0%, 2.2%, 81.2%, 45.9%)
CIE-LABlab(54.87, -11.44, 53.77)
CIE-LCHlch(54.87, 54.97, 102.01°)
OKLaboklab(60.71% -0.0376 0.1166)
OKLCHoklch(60.71% 0.123 107.9)
XYZxyz(19.3324, 22.8065, 4.3608)
Luminance0.2281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A871A #1A1D8A
analogous
#8A4F1A #8A871A #558A1A
triadic
#8A871A #1A8A87 #871A8A
tetradic
#8A871A #1A8A4F #1A1D8A #8A1A55
square
#8A871A #1A8A4F #1A1D8A #8A1A55
split-complementary
#8A871A #1A558A #4F1A8A
monochromatic
#232207 #575510 #8A871A #BDB924 #DCD743

Accessibility & contrast

On white

3.78
#8A871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A871A#FFFFFF#000000##000000
##8A871A1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#957E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a871a;
/* rgb */ color: rgb(138, 135, 26);
/* oklch */ color: oklch(60.7% 0.123 107.9);
Tailwind
colors: {
  custom: {
    50: '#b0a962',
    500: '#8a871a',
    950: '#000000',
  },
}
SCSS
$custom: #8a871a;
$custom-light: #b0a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8a871a",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 58.393,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60705,
    "c": 0.12255,
    "h": 107.9
  },
  "luminance": 0.22806
}

Semantic roles & 50–950 ramp

primary
#8A871A
secondary
#4346BD
accent
#41EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8A871A

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

Preview Lab → · Contrast checker → · Palette generator →

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