#8A7D3E#8A7D3E

#8A7D3E is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.8% C 0.085 H 97.9°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A7D3E
RGBrgb(138, 125, 62)
HSLhsl(50, 38%, 39%)
HSVhsv(50, 55%, 54%)
CMYKcmyk(0%, 9.4%, 55.1%, 45.9%)
CIE-LABlab(52.31, -3.70, 35.74)
CIE-LCHlch(52.31, 35.93, 95.91°)
OKLaboklab(58.76% -0.0117 0.0842)
OKLCHoklch(58.76% 0.085 97.9)
XYZxyz(18.6850, 20.4191, 7.5135)
Luminance0.2042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D3E #3E4B8A
analogous
#8A573E #8A7D3E #718A3E
triadic
#8A7D3E #3E8A7D #7D3E8A
tetradic
#8A7D3E #3E8A57 #3E4B8A #8A3E71
square
#8A7D3E #3E8A57 #3E4B8A #8A3E71
split-complementary
#8A7D3E #3E718A #573E8A
monochromatic
#363118 #60572B #8A7D3E #B2A253 #C5B97E

Accessibility & contrast

On white

4.13
#8A7D3E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#8A7D3E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D3E
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D3E#FFFFFF#000000##000000
##8A7D3E1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887A38
Deuteranopia (green-blind)
#8B7F41
Tritanopia (blue-blind)
#94756F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7d3e;
/* rgb */ color: rgb(138, 125, 62);
/* oklch */ color: oklch(58.8% 0.085 97.9);
Tailwind
colors: {
  custom: {
    50: '#aea275',
    500: '#8a7d3e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d3e;
$custom-light: #aea275;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d3e",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 62
  },
  "hsl": {
    "h": 49.737,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.5876,
    "c": 0.08497,
    "h": 97.9
  },
  "luminance": 0.20418
}

Semantic roles & 50–950 ramp

primary
#8A7D3E
secondary
#757FAF
accent
#6ECE5A
background
#FAF9F7
surface
#F5F2ED
border
#CFCCC8
text
#110F08
muted
#807E7B

Preview Lab

Preview with #8A7D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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