#8A46A2#8A46A2

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

Color values

HEX#8A46A2
RGBrgb(138, 70, 162)
HSLhsl(284, 40%, 45%)
HSVhsv(284, 57%, 64%)
CMYKcmyk(14.8%, 56.8%, 0%, 36.5%)
CIE-LABlab(41.83, 44.05, -38.01)
CIE-LCHlch(41.83, 58.18, 319.21°)
OKLaboklab(51.72% 0.1117 -0.1061)
OKLCHoklch(51.72% 0.154 316.5)
XYZxyz(19.1920, 12.3929, 35.5565)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46A2 #5EA246
analogous
#5C46A2 #8A46A2 #A2468C
triadic
#8A46A2 #A28A46 #46A28A
tetradic
#8A46A2 #A25C46 #5EA246 #468CA2
square
#8A46A2 #A25C46 #5EA246 #468CA2
split-complementary
#8A46A2 #8CA246 #46A25C
monochromatic
#41214D #663477 #8A46A2 #A768BE #C092D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A46A2#FFFFFF#000000##FFFFFF
##8A46A21.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)
#305EA5
Deuteranopia (green-blind)
#4765A0
Tritanopia (blue-blind)
#89556D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a46a2;
/* rgb */ color: rgb(138, 70, 162);
/* oklch */ color: oklch(51.7% 0.154 316.5);
Tailwind
colors: {
  custom: {
    50: '#ae7dbe',
    500: '#8a46a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a46a2;
$custom-light: #ae7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46a2",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 162
  },
  "hsl": {
    "h": 284.348,
    "s": 39.655,
    "l": 45.49
  },
  "oklch": {
    "l": 0.51718,
    "c": 0.15402,
    "h": 316.5
  },
  "luminance": 0.12392
}

Semantic roles & 50–950 ramp

primary
#8A46A2
secondary
#96BC88
accent
#D05877
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A46A2

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

Preview Lab → · Contrast checker → · Palette generator →

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