#8A478C#8A478C

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

Color values

HEX#8A478C
RGBrgb(138, 71, 140)
HSLhsl(298, 33%, 41%)
HSVhsv(298, 49%, 55%)
CMYKcmyk(1.4%, 49.3%, 0%, 45.1%)
CIE-LABlab(40.90, 39.00, -26.23)
CIE-LCHlch(40.90, 47.00, 326.08°)
OKLaboklab(50.66% 0.1076 -0.072)
OKLCHoklch(50.66% 0.129 326.2)
XYZxyz(17.4677, 11.8041, 26.1642)
Luminance0.1180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A478C #498C47
analogous
#68478C #8A478C #8C476C
triadic
#8A478C #8C8A47 #478C8A
tetradic
#8A478C #8C6847 #498C47 #476C8C
square
#8A478C #8C6847 #498C47 #476C8C
split-complementary
#8A478C #6C8C47 #478C68
monochromatic
#3A1E3B #623263 #8A478C #AD61AF #C28AC4

Accessibility & contrast

On white

6.25
#8A478C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A478C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A478C
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A478C#FFFFFF#000000##FFFFFF
##8A478C1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405B8E
Deuteranopia (green-blind)
#54638A
Tritanopia (blue-blind)
#8D4F63
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a478c;
/* rgb */ color: rgb(138, 71, 140);
/* oklch */ color: oklch(50.7% 0.129 326.2);
Tailwind
colors: {
  custom: {
    50: '#ae7dae',
    500: '#8a478c',
    950: '#000000',
  },
}
SCSS
$custom: #8a478c;
$custom-light: #ae7dae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a478c",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 298.261,
    "s": 32.701,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50664,
    "c": 0.12947,
    "h": 326.2
  },
  "luminance": 0.11803
}

Semantic roles & 50–950 ramp

primary
#8A478C
secondary
#81AF80
accent
#C95F62
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A478C

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

Preview Lab → · Contrast checker → · Palette generator →

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