#8A873A#8A873A

#8A873A is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 61.0% C 0.099 H 106.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A873A
RGBrgb(138, 135, 58)
HSLhsl(58, 41%, 38%)
HSVhsv(58, 58%, 54%)
CMYKcmyk(0%, 2.2%, 58%, 45.9%)
CIE-LABlab(55.11, -9.57, 40.99)
CIE-LCHlch(55.11, 42.09, 103.14°)
OKLaboklab(60.97% -0.0289 0.095)
OKLCHoklch(60.97% 0.099 106.9)
XYZxyz(19.9095, 23.0373, 7.4000)
Luminance0.2304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A873A #3A3D8A
analogous
#8A5F3A #8A873A #658A3A
triadic
#8A873A #3A8A87 #873A8A
tetradic
#8A873A #3A8A5F #3A3D8A #8A3A65
square
#8A873A #3A8A5F #3A3D8A #8A3A65
split-complementary
#8A873A #3A658A #5F3A8A
monochromatic
#343316 #5F5D28 #8A873A #B4B04D #C6C378

Accessibility & contrast

On white

3.75
#8A873A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#8A873A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A873A
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A873A#FFFFFF#000000##000000
##8A873A1.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#918232
Deuteranopia (green-blind)
#93853E
Tritanopia (blue-blind)
#937F76
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a873a;
/* rgb */ color: rgb(138, 135, 58);
/* oklch */ color: oklch(61.0% 0.099 106.9);
Tailwind
colors: {
  custom: {
    50: '#aea973',
    500: '#8a873a',
    950: '#000000',
  },
}
SCSS
$custom: #8a873a;
$custom-light: #aea973;
$custom-dark: #000000;
JSON
{
  "hex": "#8a873a",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 58
  },
  "hsl": {
    "h": 57.75,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.60971,
    "c": 0.09933,
    "h": 106.9
  },
  "luminance": 0.23037
}

Semantic roles & 50–950 ramp

primary
#8A873A
secondary
#7073B0
accent
#5CD157
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#110F08
muted
#807F7B

Preview Lab

Preview with #8A873A

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

Preview Lab → · Contrast checker → · Palette generator →

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