#8A478D#8A478D

#8A478D is a mid, vivid purple. Relative luminance 0.118; OKLCH L 50.7% C 0.130 H 325.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A478D
RGBrgb(138, 71, 141)
HSLhsl(297, 33%, 42%)
HSVhsv(297, 50%, 55%)
CMYKcmyk(2.1%, 49.6%, 0%, 44.7%)
CIE-LABlab(40.95, 39.20, -26.76)
CIE-LCHlch(40.95, 47.46, 325.67°)
OKLaboklab(50.72% 0.1078 -0.0735)
OKLCHoklch(50.72% 0.13 325.7)
XYZxyz(17.5418, 11.8337, 26.5543)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A478D #4A8D47
analogous
#67478D #8A478D #8D476D
triadic
#8A478D #8D8A47 #478D8A
tetradic
#8A478D #8D6747 #4A8D47 #476D8D
square
#8A478D #8D6747 #4A8D47 #476D8D
split-complementary
#8A478D #6D8D47 #478D67
monochromatic
#3A1E3C #623364 #8A478D #AC62B0 #C28AC4

Accessibility & contrast

On white

6.24
#8A478D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A478D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A478D
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A478D#FFFFFF#000000##FFFFFF
##8A478D1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5B8F
Deuteranopia (green-blind)
#53648B
Tritanopia (blue-blind)
#8D4F63
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a478d;
/* rgb */ color: rgb(138, 71, 141);
/* oklch */ color: oklch(50.7% 0.130 325.7);
Tailwind
colors: {
  custom: {
    50: '#ae7dae',
    500: '#8a478d',
    950: '#000000',
  },
}
SCSS
$custom: #8a478d;
$custom-light: #ae7dae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a478d",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 297.429,
    "s": 33.019,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50715,
    "c": 0.13048,
    "h": 325.7
  },
  "luminance": 0.11833
}

Semantic roles & 50–950 ramp

primary
#8A478D
secondary
#82B080
accent
#C95F63
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A478D

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

Preview Lab → · Contrast checker → · Palette generator →

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