#8A478E#8A478E

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

Color values

HEX#8A478E
RGBrgb(138, 71, 142)
HSLhsl(297, 33%, 42%)
HSVhsv(297, 50%, 56%)
CMYKcmyk(2.8%, 50%, 0%, 44.3%)
CIE-LABlab(41.00, 39.39, -27.30)
CIE-LCHlch(41.00, 47.93, 325.28°)
OKLaboklab(50.77% 0.1079 -0.0751)
OKLCHoklch(50.77% 0.131 325.2)
XYZxyz(17.6165, 11.8636, 26.9479)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A478E #4B8E47
analogous
#67478E #8A478E #8E476F
triadic
#8A478E #8E8A47 #478E8A
tetradic
#8A478E #8E6747 #4B8E47 #476F8E
square
#8A478E #8E6747 #4B8E47 #476F8E
split-complementary
#8A478E #6F8E47 #478E67
monochromatic
#3B1E3C #623365 #8A478E #AC62B0 #C28BC5

Accessibility & contrast

On white

6.23
#8A478E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A478E
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A478E#FFFFFF#000000##FFFFFF
##8A478E1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5B90
Deuteranopia (green-blind)
#53648C
Tritanopia (blue-blind)
#8D4F64
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a478e;
/* rgb */ color: rgb(138, 71, 142);
/* oklch */ color: oklch(50.8% 0.131 325.2);
Tailwind
colors: {
  custom: {
    50: '#ae7daf',
    500: '#8a478e',
    950: '#000000',
  },
}
SCSS
$custom: #8a478e;
$custom-light: #ae7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a478e",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 296.62,
    "s": 33.333,
    "l": 41.765
  },
  "oklch": {
    "l": 0.50766,
    "c": 0.13148,
    "h": 325.2
  },
  "luminance": 0.11863
}

Semantic roles & 50–950 ramp

primary
#8A478E
secondary
#83B080
accent
#C95E64
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A478E

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

Preview Lab → · Contrast checker → · Palette generator →

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