#8A479D#8A479D

#8A479D is a mid, vivid purple. Relative luminance 0.123; OKLCH L 51.6% C 0.147 H 318.4°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A479D
RGBrgb(138, 71, 157)
HSLhsl(287, 38%, 45%)
HSVhsv(287, 55%, 62%)
CMYKcmyk(12.1%, 54.8%, 0%, 38.4%)
CIE-LABlab(41.76, 42.46, -35.14)
CIE-LCHlch(41.76, 55.12, 320.39°)
OKLaboklab(51.58% 0.1099 -0.0977)
OKLCHoklch(51.58% 0.147 318.4)
XYZxyz(18.8194, 12.3448, 33.2832)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A479D #5A9D47
analogous
#5F479D #8A479D #9D4785
triadic
#8A479D #9D8A47 #479D8A
tetradic
#8A479D #9D5F47 #5A9D47 #47859D
square
#8A479D #9D5F47 #5A9D47 #47859D
split-complementary
#8A479D #859D47 #479D5F
monochromatic
#402149 #653473 #8A479D #A867BA #C091CD

Accessibility & contrast

On white

6.05
#8A479D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8A479D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A479D
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A479D#FFFFFF#000000##FFFFFF
##8A479D1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA0
Deuteranopia (green-blind)
#4B659B
Tritanopia (blue-blind)
#8A546B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a479d;
/* rgb */ color: rgb(138, 71, 157);
/* oklch */ color: oklch(51.6% 0.147 318.4);
Tailwind
colors: {
  custom: {
    50: '#ae7dba',
    500: '#8a479d',
    950: '#000000',
  },
}
SCSS
$custom: #8a479d;
$custom-light: #ae7dba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a479d",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 157
  },
  "hsl": {
    "h": 286.744,
    "s": 37.719,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51575,
    "c": 0.14706,
    "h": 318.4
  },
  "luminance": 0.12344
}

Semantic roles & 50–950 ramp

primary
#8A479D
secondary
#92B987
accent
#CE5A74
background
#FAF7FB
surface
#F5EEF6
border
#CFC9D0
text
#110A11
muted
#807C80

Preview Lab

Preview with #8A479D

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

Preview Lab → · Contrast checker → · Palette generator →

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