#8A478B#8A478B

#8A478B is a mid, vivid purple. Relative luminance 0.118; OKLCH L 50.6% C 0.128 H 326.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8A478B
RGBrgb(138, 71, 139)
HSLhsl(299, 32%, 41%)
HSVhsv(299, 49%, 55%)
CMYKcmyk(0.7%, 48.9%, 0%, 45.5%)
CIE-LABlab(40.86, 38.81, -25.70)
CIE-LCHlch(40.86, 46.54, 326.49°)
OKLaboklab(50.61% 0.1074 -0.0705)
OKLCHoklch(50.61% 0.128 326.7)
XYZxyz(17.3943, 11.7747, 25.7776)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A478B #488B47
analogous
#68478B #8A478B #8B476A
triadic
#8A478B #8B8A47 #478B8A
tetradic
#8A478B #8B6847 #488B47 #476A8B
square
#8A478B #8B6847 #488B47 #476A8B
split-complementary
#8A478B #6A8B47 #478B68
monochromatic
#3A1E3A #623262 #8A478B #AD61AE #C289C3

Accessibility & contrast

On white

6.26
#8A478B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A478B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A478B
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A478B#FFFFFF#000000##FFFFFF
##8A478B1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8D
Deuteranopia (green-blind)
#546389
Tritanopia (blue-blind)
#8D4E62
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a478b;
/* rgb */ color: rgb(138, 71, 139);
/* oklch */ color: oklch(50.6% 0.128 326.7);
Tailwind
colors: {
  custom: {
    50: '#ae7dad',
    500: '#8a478b',
    950: '#000000',
  },
}
SCSS
$custom: #8a478b;
$custom-light: #ae7dad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a478b",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 299.118,
    "s": 32.381,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50614,
    "c": 0.12848,
    "h": 326.7
  },
  "luminance": 0.11774
}

Semantic roles & 50–950 ramp

primary
#8A478B
secondary
#80AE7F
accent
#C95F61
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A478B

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

Preview Lab → · Contrast checker → · Palette generator →

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