#8A7D32#8A7D32

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

Color values

HEX#8A7D32
RGBrgb(138, 125, 50)
HSLhsl(51, 47%, 37%)
HSVhsv(51, 64%, 54%)
CMYKcmyk(0%, 9.4%, 63.8%, 45.9%)
CIE-LABlab(52.18, -4.67, 41.58)
CIE-LCHlch(52.18, 41.84, 96.40°)
OKLaboklab(58.61% -0.0159 0.0952)
OKLCHoklch(58.61% 0.097 99.5)
XYZxyz(18.3913, 20.3016, 5.9668)
Luminance0.2030 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D32 #323F8A
analogous
#8A5132 #8A7D32 #6B8A32
triadic
#8A7D32 #328A7D #7D328A
tetradic
#8A7D32 #328A51 #323F8A #8A326B
square
#8A7D32 #328A51 #323F8A #8A326B
split-complementary
#8A7D32 #326B8A #51328A
monochromatic
#302C11 #5D5422 #8A7D32 #B7A642 #CABC6C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7D32#FFFFFF#000000##000000
##8A7D321.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)
#887A2A
Deuteranopia (green-blind)
#8C7F36
Tritanopia (blue-blind)
#94746D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d32;
/* rgb */ color: rgb(138, 125, 50);
/* oklch */ color: oklch(58.6% 0.097 99.5);
Tailwind
colors: {
  custom: {
    50: '#afa26d',
    500: '#8a7d32',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d32;
$custom-light: #afa26d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d32",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 50
  },
  "hsl": {
    "h": 51.136,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.58614,
    "c": 0.0965,
    "h": 99.5
  },
  "luminance": 0.20301
}

Semantic roles & 50–950 ramp

primary
#8A7D32
secondary
#6671B2
accent
#65D651
background
#FBF9F6
surface
#F6F2EC
border
#D0CCC7
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7D32

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

Preview Lab → · Contrast checker → · Palette generator →

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