#8A7D31#8A7D31

#8A7D31 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.6% C 0.097 H 99.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A7D31
RGBrgb(138, 125, 49)
HSLhsl(51, 48%, 37%)
HSVhsv(51, 64%, 54%)
CMYKcmyk(0%, 9.4%, 64.5%, 45.9%)
CIE-LABlab(52.17, -4.74, 42.04)
CIE-LCHlch(52.17, 42.31, 96.43°)
OKLaboklab(58.6% -0.0163 0.096)
OKLCHoklch(58.6% 0.097 99.6)
XYZxyz(18.3700, 20.2931, 5.8545)
Luminance0.2029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D31 #313E8A
analogous
#8A5131 #8A7D31 #6B8A31
triadic
#8A7D31 #318A7D #7D318A
tetradic
#8A7D31 #318A51 #313E8A #8A316B
square
#8A7D31 #318A51 #313E8A #8A316B
split-complementary
#8A7D31 #316B8A #51318A
monochromatic
#302B11 #5D5421 #8A7D31 #B7A641 #CABC6B

Accessibility & contrast

On white

4.15
#8A7D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8A7D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D31
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D31#FFFFFF#000000##000000
##8A7D311.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A28
Deuteranopia (green-blind)
#8C7F35
Tritanopia (blue-blind)
#94746D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d31;
/* rgb */ color: rgb(138, 125, 49);
/* oklch */ color: oklch(58.6% 0.097 99.6);
Tailwind
colors: {
  custom: {
    50: '#afa26d',
    500: '#8a7d31',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d31;
$custom-light: #afa26d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d31",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 51.236,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58603,
    "c": 0.09739,
    "h": 99.6
  },
  "luminance": 0.20292
}

Semantic roles & 50–950 ramp

primary
#8A7D31
secondary
#6570B2
accent
#64D751
background
#FBF9F6
surface
#F6F2EC
border
#D0CCC7
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7D31

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

Preview Lab → · Contrast checker → · Palette generator →

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