#8A478A#8A478A

#8A478A is a mid, vivid purple. Relative luminance 0.117; OKLCH L 50.6% C 0.127 H 327.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A478A
RGBrgb(138, 71, 138)
HSLhsl(300, 32%, 41%)
HSVhsv(300, 49%, 54%)
CMYKcmyk(0%, 48.6%, 0%, 45.9%)
CIE-LABlab(40.81, 38.61, -25.16)
CIE-LCHlch(40.81, 46.09, 326.91°)
OKLaboklab(50.56% 0.1072 -0.069)
OKLCHoklch(50.56% 0.127 327.3)
XYZxyz(17.3216, 11.7456, 25.3946)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A478A #478A47
analogous
#68478A #8A478A #8A4768
triadic
#8A478A #8A8A47 #478A8A
tetradic
#8A478A #8A6847 #478A47 #47688A
square
#8A478A #8A6847 #478A47 #47688A
split-complementary
#8A478A #688A47 #478A68
monochromatic
#391D39 #623262 #8A478A #AE61AE #C289C2

Accessibility & contrast

On white

6.27
#8A478A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A478A
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A478A#FFFFFF#000000##FFFFFF
##8A478A1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8C
Deuteranopia (green-blind)
#546388
Tritanopia (blue-blind)
#8E4E62
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a478a;
/* rgb */ color: rgb(138, 71, 138);
/* oklch */ color: oklch(50.6% 0.127 327.3);
Tailwind
colors: {
  custom: {
    50: '#ae7dac',
    500: '#8a478a',
    950: '#000000',
  },
}
SCSS
$custom: #8a478a;
$custom-light: #ae7dac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a478a",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 32.057,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50564,
    "c": 0.12749,
    "h": 327.3
  },
  "luminance": 0.11745
}

Semantic roles & 50–950 ramp

primary
#8A478A
secondary
#7FAE7F
accent
#C86060
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A478A

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

Preview Lab → · Contrast checker → · Palette generator →

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