#8A46A8#8A46A8

#8A46A8 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.1% C 0.160 H 314.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A46A8
RGBrgb(138, 70, 168)
HSLhsl(282, 41%, 47%)
HSVhsv(282, 58%, 66%)
CMYKcmyk(17.9%, 58.3%, 0%, 34.1%)
CIE-LABlab(42.17, 45.35, -41.05)
CIE-LCHlch(42.17, 61.17, 317.85°)
OKLaboklab(52.08% 0.112 -0.1149)
OKLCHoklch(52.08% 0.16 314.3)
XYZxyz(19.7381, 12.6113, 38.4327)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46A8 #64A846
analogous
#5946A8 #8A46A8 #A84695
triadic
#8A46A8 #A88A46 #46A88A
tetradic
#8A46A8 #A85946 #64A846 #4695A8
square
#8A46A8 #A85946 #64A846 #4695A8
split-complementary
#8A46A8 #95A846 #46A859
monochromatic
#432252 #67347D #8A46A8 #A66AC1 #C095D3

Accessibility & contrast

On white

5.96
#8A46A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A46A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46A8
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46A8#FFFFFF#000000##FFFFFF
##8A46A81.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A60AB
Deuteranopia (green-blind)
#4365A6
Tritanopia (blue-blind)
#885770
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a46a8;
/* rgb */ color: rgb(138, 70, 168);
/* oklch */ color: oklch(52.1% 0.160 314.3);
Tailwind
colors: {
  custom: {
    50: '#af7dc2',
    500: '#8a46a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a46a8;
$custom-light: #af7dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46a8",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 168
  },
  "hsl": {
    "h": 281.633,
    "s": 41.176,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52075,
    "c": 0.16047,
    "h": 314.3
  },
  "luminance": 0.12611
}

Semantic roles & 50–950 ramp

primary
#8A46A8
secondary
#9BBF8B
accent
#D1577C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A46A8

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

Preview Lab → · Contrast checker → · Palette generator →

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