#8A478F#8A478F

#8A478F is a mid, vivid purple. Relative luminance 0.119; OKLCH L 50.8% C 0.132 H 324.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A478F
RGBrgb(138, 71, 143)
HSLhsl(296, 34%, 42%)
HSVhsv(296, 50%, 56%)
CMYKcmyk(3.5%, 50.3%, 0%, 43.9%)
CIE-LABlab(41.05, 39.59, -27.83)
CIE-LCHlch(41.05, 48.39, 324.90°)
OKLaboklab(50.82% 0.1081 -0.0766)
OKLCHoklch(50.82% 0.132 324.7)
XYZxyz(17.6920, 11.8938, 27.3451)
Luminance0.1189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A478F #4C8F47
analogous
#66478F #8A478F #8F4770
triadic
#8A478F #8F8A47 #478F8A
tetradic
#8A478F #8F6647 #4C8F47 #47708F
square
#8A478F #8F6647 #4C8F47 #47708F
split-complementary
#8A478F #708F47 #478F66
monochromatic
#3B1E3D #633366 #8A478F #AC62B1 #C18BC5

Accessibility & contrast

On white

6.22
#8A478F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A478F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A478F
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A478F#FFFFFF#000000##FFFFFF
##8A478F1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5C91
Deuteranopia (green-blind)
#52648D
Tritanopia (blue-blind)
#8D5064
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a478f;
/* rgb */ color: rgb(138, 71, 143);
/* oklch */ color: oklch(50.8% 0.132 324.7);
Tailwind
colors: {
  custom: {
    50: '#ae7db0',
    500: '#8a478f',
    950: '#000000',
  },
}
SCSS
$custom: #8a478f;
$custom-light: #ae7db0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a478f",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 295.833,
    "s": 33.645,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50818,
    "c": 0.13249,
    "h": 324.7
  },
  "luminance": 0.11893
}

Semantic roles & 50–950 ramp

primary
#8A478F
secondary
#84B181
accent
#CA5E66
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A478F

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

Preview Lab → · Contrast checker → · Palette generator →

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