#8A7940#8A7940

#8A7940 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.9% C 0.079 H 93.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A7940
RGBrgb(138, 121, 64)
HSLhsl(46, 37%, 40%)
HSVhsv(46, 54%, 54%)
CMYKcmyk(0%, 12.3%, 53.6%, 45.9%)
CIE-LABlab(51.21, -1.26, 33.38)
CIE-LCHlch(51.21, 33.40, 92.17°)
OKLaboklab(57.9% -0.0044 0.0792)
OKLCHoklch(57.9% 0.079 93.2)
XYZxyz(18.2447, 19.4490, 7.6425)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7940 #40518A
analogous
#8A5440 #8A7940 #768A40
triadic
#8A7940 #408A79 #79408A
tetradic
#8A7940 #408A54 #40518A #8A4076
square
#8A7940 #408A54 #40518A #8A4076
split-complementary
#8A7940 #40768A #54408A
monochromatic
#363019 #60542D #8A7940 #B19C56 #C4B580

Accessibility & contrast

On white

4.29
#8A7940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A7940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7940
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7940#FFFFFF#000000##000000
##8A79401.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#84773B
Deuteranopia (green-blind)
#887C42
Tritanopia (blue-blind)
#94716C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7940;
/* rgb */ color: rgb(138, 121, 64);
/* oklch */ color: oklch(57.9% 0.079 93.2);
Tailwind
colors: {
  custom: {
    50: '#ae9f76',
    500: '#8a7940',
    950: '#000000',
  },
}
SCSS
$custom: #8a7940;
$custom-light: #ae9f76;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7940",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 46.216,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.57899,
    "c": 0.07931,
    "h": 93.2
  },
  "luminance": 0.19448
}

Semantic roles & 50–950 ramp

primary
#8A7940
secondary
#7784AF
accent
#75CD5B
background
#FAF9F7
surface
#F5F2ED
border
#CFCCC8
text
#100E08
muted
#7F7E7B

Preview Lab

Preview with #8A7940

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

Preview Lab → · Contrast checker → · Palette generator →

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