#8A7840#8A7840

#8A7840 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.7% C 0.079 H 92.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A7840
RGBrgb(138, 120, 64)
HSLhsl(45, 37%, 40%)
HSVhsv(45, 54%, 54%)
CMYKcmyk(0%, 13%, 53.6%, 45.9%)
CIE-LABlab(50.93, -0.70, 33.04)
CIE-LCHlch(50.93, 33.05, 91.21°)
OKLaboklab(57.68% -0.0027 0.0785)
OKLCHoklch(57.68% 0.079 92)
XYZxyz(18.1238, 19.2072, 7.6022)
Luminance0.1921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7840 #40528A
analogous
#8A5340 #8A7840 #778A40
triadic
#8A7840 #408A78 #78408A
tetradic
#8A7840 #408A53 #40528A #8A4077
square
#8A7840 #408A53 #40528A #8A4077
split-complementary
#8A7840 #40778A #53408A
monochromatic
#362F19 #60542D #8A7840 #B19B56 #C4B480

Accessibility & contrast

On white

4.34
#8A7840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#8A7840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7840
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7840#FFFFFF#000000##000000
##8A78401.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#83763B
Deuteranopia (green-blind)
#877C42
Tritanopia (blue-blind)
#94706B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a7840;
/* rgb */ color: rgb(138, 120, 64);
/* oklch */ color: oklch(57.7% 0.079 92.0);
Tailwind
colors: {
  custom: {
    50: '#ae9e76',
    500: '#8a7840',
    950: '#000000',
  },
}
SCSS
$custom: #8a7840;
$custom-light: #ae9e76;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7840",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 45.405,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.57678,
    "c": 0.0785,
    "h": 92
  },
  "luminance": 0.19206
}

Semantic roles & 50–950 ramp

primary
#8A7840
secondary
#7785AF
accent
#77CD5B
background
#FAF9F7
surface
#F5F2ED
border
#CFCCC8
text
#100E08
muted
#7F7E7B

Preview Lab

Preview with #8A7840

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

Preview Lab → · Contrast checker → · Palette generator →

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