#8A4782#8A4782

#8A4782 is a mid, moderate purple. Relative luminance 0.115; OKLCH L 50.2% C 0.120 H 331.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8A4782
RGBrgb(138, 71, 130)
HSLhsl(307, 32%, 41%)
HSVhsv(307, 49%, 54%)
CMYKcmyk(0%, 48.6%, 5.8%, 45.9%)
CIE-LABlab(40.45, 37.10, -20.84)
CIE-LCHlch(40.45, 42.55, 330.67°)
OKLaboklab(50.18% 0.1056 -0.0567)
OKLCHoklch(50.18% 0.12 331.8)
XYZxyz(16.7636, 11.5224, 22.4558)
Luminance0.1152 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4782 #478A4F
analogous
#70478A #8A4782 #8A4760
triadic
#8A4782 #828A47 #47828A
tetradic
#8A4782 #8A7047 #478A4F #47608A
square
#8A4782 #8A7047 #478A4F #47608A
split-complementary
#8A4782 #608A47 #478A70
monochromatic
#391D36 #62325C #8A4782 #AE61A4 #C289BB

Accessibility & contrast

On white

6.36
#8A4782 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A4782 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4782
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4782#FFFFFF#000000##FFFFFF
##8A47821.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455984
Deuteranopia (green-blind)
#586380
Tritanopia (blue-blind)
#8F4C5E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a4782;
/* rgb */ color: rgb(138, 71, 130);
/* oklch */ color: oklch(50.2% 0.120 331.8);
Tailwind
colors: {
  custom: {
    50: '#ae7da6',
    500: '#8a4782',
    950: '#000000',
  },
}
SCSS
$custom: #8a4782;
$custom-light: #ae7da6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4782",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 130
  },
  "hsl": {
    "h": 307.164,
    "s": 32.057,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50176,
    "c": 0.11984,
    "h": 331.8
  },
  "luminance": 0.11521
}

Semantic roles & 50–950 ramp

primary
#8A4782
secondary
#7FAE85
accent
#C86C60
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100A0F
muted
#7F7C7F

Preview Lab

Preview with #8A4782

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

Preview Lab → · Contrast checker → · Palette generator →

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