#8A46AB#8A46AB

#8A46AB is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.3% C 0.164 H 313.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8A46AB
RGBrgb(138, 70, 171)
HSLhsl(280, 42%, 47%)
HSVhsv(280, 59%, 67%)
CMYKcmyk(19.3%, 59.1%, 0%, 32.9%)
CIE-LABlab(42.34, 46.01, -42.55)
CIE-LCHlch(42.34, 62.67, 317.24°)
OKLaboklab(52.26% 0.1121 -0.1193)
OKLCHoklch(52.26% 0.164 313.2)
XYZxyz(20.0208, 12.7244, 39.9216)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46AB #67AB46
analogous
#5746AB #8A46AB #AB469A
triadic
#8A46AB #AB8A46 #46AB8A
tetradic
#8A46AB #AB5746 #67AB46 #469AAB
square
#8A46AB #AB5746 #67AB46 #469AAB
split-complementary
#8A46AB #9AAB46 #46AB57
monochromatic
#442254 #673480 #8A46AB #A66CC3 #C097D4

Accessibility & contrast

On white

5.92
#8A46AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A46AB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46AB#FFFFFF#000000##FFFFFF
##8A46AB1.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AE
Deuteranopia (green-blind)
#4166A9
Tritanopia (blue-blind)
#875872
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a46ab;
/* rgb */ color: rgb(138, 70, 171);
/* oklch */ color: oklch(52.3% 0.164 313.2);
Tailwind
colors: {
  custom: {
    50: '#af7dc4',
    500: '#8a46ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a46ab;
$custom-light: #af7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46ab",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 171
  },
  "hsl": {
    "h": 280.396,
    "s": 41.909,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52258,
    "c": 0.16371,
    "h": 313.2
  },
  "luminance": 0.12724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A46AB

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

Preview Lab → · Contrast checker → · Palette generator →

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