#8A7831#8A7831

#8A7831 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.5% C 0.093 H 95.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A7831
RGBrgb(138, 120, 49)
HSLhsl(48, 48%, 37%)
HSVhsv(48, 64%, 54%)
CMYKcmyk(0%, 13%, 64.5%, 45.9%)
CIE-LABlab(50.76, -1.93, 40.50)
CIE-LCHlch(50.76, 40.55, 92.73°)
OKLaboklab(57.49% -0.0082 0.0928)
OKLCHoklch(57.49% 0.093 95.1)
XYZxyz(17.7529, 19.0588, 5.6488)
Luminance0.1906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7831 #31438A
analogous
#8A4C31 #8A7831 #708A31
triadic
#8A7831 #318A78 #78318A
tetradic
#8A7831 #318A4C #31438A #8A3170
square
#8A7831 #318A4C #31438A #8A3170
split-complementary
#8A7831 #31708A #4C318A
monochromatic
#302911 #5D5121 #8A7831 #B79F41 #CAB76B

Accessibility & contrast

On white

4.36
#8A7831 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8A7831 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7831
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7831#FFFFFF#000000##000000
##8A78311.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847629
Deuteranopia (green-blind)
#887B34
Tritanopia (blue-blind)
#956F69
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a7831;
/* rgb */ color: rgb(138, 120, 49);
/* oklch */ color: oklch(57.5% 0.093 95.1);
Tailwind
colors: {
  custom: {
    50: '#af9e6c',
    500: '#8a7831',
    950: '#000000',
  },
}
SCSS
$custom: #8a7831;
$custom-light: #af9e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7831",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 49
  },
  "hsl": {
    "h": 47.865,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.57486,
    "c": 0.09311,
    "h": 95.1
  },
  "luminance": 0.19058
}

Semantic roles & 50–950 ramp

primary
#8A7831
secondary
#6574B2
accent
#6CD751
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A7831

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

Preview Lab → · Contrast checker → · Palette generator →

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