#8A46A6#8A46A6

#8A46A6 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.0% C 0.158 H 315.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8A46A6
RGBrgb(138, 70, 166)
HSLhsl(283, 41%, 46%)
HSVhsv(283, 58%, 65%)
CMYKcmyk(16.9%, 57.8%, 0%, 34.9%)
CIE-LABlab(42.06, 44.91, -40.04)
CIE-LCHlch(42.06, 60.17, 318.28°)
OKLaboklab(51.96% 0.1119 -0.112)
OKLCHoklch(51.96% 0.158 315)
XYZxyz(19.5532, 12.5374, 37.4589)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46A6 #62A646
analogous
#5A46A6 #8A46A6 #A64692
triadic
#8A46A6 #A68A46 #46A68A
tetradic
#8A46A6 #A65A46 #62A646 #4692A6
square
#8A46A6 #A65A46 #62A646 #4692A6
split-complementary
#8A46A6 #92A646 #46A65A
monochromatic
#422250 #66347B #8A46A6 #A769C0 #C094D2

Accessibility & contrast

On white

5.99
#8A46A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A46A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46A6
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46A6#FFFFFF#000000##FFFFFF
##8A46A61.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5FA9
Deuteranopia (green-blind)
#4565A4
Tritanopia (blue-blind)
#88566F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a46a6;
/* rgb */ color: rgb(138, 70, 166);
/* oklch */ color: oklch(52.0% 0.158 315.0);
Tailwind
colors: {
  custom: {
    50: '#af7dc1',
    500: '#8a46a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a46a6;
$custom-light: #af7dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46a6",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 166
  },
  "hsl": {
    "h": 282.5,
    "s": 40.678,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51955,
    "c": 0.15831,
    "h": 315
  },
  "luminance": 0.12537
}

Semantic roles & 50–950 ramp

primary
#8A46A6
secondary
#99BE8A
accent
#D1577B
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A46A6

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

Preview Lab → · Contrast checker → · Palette generator →

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