#8A46B1#8A46B1

#8A46B1 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.170 H 311.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8A46B1
RGBrgb(138, 70, 177)
HSLhsl(278, 43%, 48%)
HSVhsv(278, 60%, 69%)
CMYKcmyk(22%, 60.5%, 0%, 30.6%)
CIE-LABlab(42.70, 47.35, -45.53)
CIE-LCHlch(42.70, 65.69, 316.12°)
OKLaboklab(52.63% 0.1122 -0.128)
OKLCHoklch(52.63% 0.17 311.2)
XYZxyz(20.6057, 12.9584, 43.0022)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46B1 #6DB146
analogous
#5446B1 #8A46B1 #B146A2
triadic
#8A46B1 #B18A46 #46B18A
tetradic
#8A46B1 #B15446 #6DB146 #46A2B1
square
#8A46B1 #B15446 #6DB146 #46A2B1
split-complementary
#8A46B1 #A2B146 #46B154
monochromatic
#462359 #683585 #8A46B1 #A66EC6 #C19AD7

Accessibility & contrast

On white

5.85
#8A46B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A46B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46B1
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46B1#FFFFFF#000000##FFFFFF
##8A46B11.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B4
Deuteranopia (green-blind)
#3C66AE
Tritanopia (blue-blind)
#855A75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a46b1;
/* rgb */ color: rgb(138, 70, 177);
/* oklch */ color: oklch(52.6% 0.170 311.2);
Tailwind
colors: {
  custom: {
    50: '#af7dc9',
    500: '#8a46b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a46b1;
$custom-light: #af7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46b1",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 177
  },
  "hsl": {
    "h": 278.131,
    "s": 43.32,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52631,
    "c": 0.17022,
    "h": 311.2
  },
  "luminance": 0.12958
}

Semantic roles & 50–950 ramp

primary
#8A46B1
secondary
#A2C38F
accent
#D35583
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A46B1

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

Preview Lab → · Contrast checker → · Palette generator →

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