#8A479E#8A479E

#8A479E is a mid, vivid purple. Relative luminance 0.124; OKLCH L 51.6% C 0.148 H 317.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8A479E
RGBrgb(138, 71, 158)
HSLhsl(286, 38%, 45%)
HSVhsv(286, 55%, 62%)
CMYKcmyk(12.7%, 55.1%, 0%, 38%)
CIE-LABlab(41.81, 42.68, -35.66)
CIE-LCHlch(41.81, 55.61, 320.12°)
OKLaboklab(51.63% 0.11 -0.0992)
OKLCHoklch(51.63% 0.148 317.9)
XYZxyz(18.9052, 12.3791, 33.7347)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A479E #5B9E47
analogous
#5F479E #8A479E #9E4786
triadic
#8A479E #9E8A47 #479E8A
tetradic
#8A479E #9E5F47 #5B9E47 #47869E
square
#8A479E #9E5F47 #5B9E47 #47869E
split-complementary
#8A479E #869E47 #479E5F
monochromatic
#40214A #653474 #8A479E #A867BB #C092CE

Accessibility & contrast

On white

6.04
#8A479E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8A479E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A479E
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A479E#FFFFFF#000000##FFFFFF
##8A479E1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA1
Deuteranopia (green-blind)
#4B659C
Tritanopia (blue-blind)
#8A546C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a479e;
/* rgb */ color: rgb(138, 71, 158);
/* oklch */ color: oklch(51.6% 0.148 317.9);
Tailwind
colors: {
  custom: {
    50: '#ae7dbb',
    500: '#8a479e',
    950: '#000000',
  },
}
SCSS
$custom: #8a479e;
$custom-light: #ae7dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a479e",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 286.207,
    "s": 37.991,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51632,
    "c": 0.14812,
    "h": 317.9
  },
  "luminance": 0.12378
}

Semantic roles & 50–950 ramp

primary
#8A479E
secondary
#93BA87
accent
#CE5A75
background
#FAF7FB
surface
#F5EEF6
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A479E

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

Preview Lab → · Contrast checker → · Palette generator →

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