#8A46AA#8A46AA

#8A46AA is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.2% C 0.163 H 313.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A46AA
RGBrgb(138, 70, 170)
HSLhsl(281, 42%, 47%)
HSVhsv(281, 59%, 67%)
CMYKcmyk(18.8%, 58.8%, 0%, 33.3%)
CIE-LABlab(42.29, 45.79, -42.05)
CIE-LCHlch(42.29, 62.17, 317.44°)
OKLaboklab(52.2% 0.1121 -0.1178)
OKLCHoklch(52.2% 0.163 313.6)
XYZxyz(19.9259, 12.6864, 39.4215)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46AA #66AA46
analogous
#5846AA #8A46AA #AA4698
triadic
#8A46AA #AA8A46 #46AA8A
tetradic
#8A46AA #AA5846 #66AA46 #4698AA
square
#8A46AA #AA5846 #66AA46 #4698AA
split-complementary
#8A46AA #98AA46 #46AA58
monochromatic
#442253 #67347F #8A46AA #A66BC2 #C096D4

Accessibility & contrast

On white

5.94
#8A46AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A46AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46AA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46AA#FFFFFF#000000##FFFFFF
##8A46AA1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2860AD
Deuteranopia (green-blind)
#4265A8
Tritanopia (blue-blind)
#875771
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a46aa;
/* rgb */ color: rgb(138, 70, 170);
/* oklch */ color: oklch(52.2% 0.163 313.6);
Tailwind
colors: {
  custom: {
    50: '#af7dc4',
    500: '#8a46aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a46aa;
$custom-light: #af7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46aa",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 170
  },
  "hsl": {
    "h": 280.8,
    "s": 41.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52196,
    "c": 0.16263,
    "h": 313.6
  },
  "luminance": 0.12686
}

Semantic roles & 50–950 ramp

primary
#8A46AA
secondary
#9DC08C
accent
#D1567E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A46AA

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

Preview Lab → · Contrast checker → · Palette generator →

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