#8A46BA#8A46BA

#8A46BA is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.2% C 0.180 H 308.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A46BA
RGBrgb(138, 70, 186)
HSLhsl(275, 46%, 50%)
HSVhsv(275, 62%, 73%)
CMYKcmyk(25.8%, 62.4%, 0%, 27.1%)
CIE-LABlab(43.26, 49.40, -49.93)
CIE-LCHlch(43.26, 70.23, 314.69°)
OKLaboklab(53.21% 0.112 -0.1409)
OKLCHoklch(53.21% 0.18 308.5)
XYZxyz(21.5325, 13.3291, 47.8833)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46BA #76BA46
analogous
#5046BA #8A46BA #BA46B0
triadic
#8A46BA #BA8A46 #46BA8A
tetradic
#8A46BA #BA5046 #76BA46 #46B0BA
square
#8A46BA #BA5046 #76BA46 #46B0BA
split-complementary
#8A46BA #B0BA46 #46BA50
monochromatic
#482461 #69358E #8A46BA #A673CB #C29FDB

Accessibility & contrast

On white

5.73
#8A46BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A46BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46BA
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46BA#FFFFFF#000000##FFFFFF
##8A46BA1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0863BE
Deuteranopia (green-blind)
#3467B7
Tritanopia (blue-blind)
#835D79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a46ba;
/* rgb */ color: rgb(138, 70, 186);
/* oklch */ color: oklch(53.2% 0.180 308.5);
Tailwind
colors: {
  custom: {
    50: '#b07dcf',
    500: '#8a46ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a46ba;
$custom-light: #b07dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46ba",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 275.172,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53212,
    "c": 0.18002,
    "h": 308.5
  },
  "luminance": 0.13329
}

Semantic roles & 50–950 ramp

primary
#8A46BA
secondary
#A9C894
accent
#D55289
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A46BA

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

Preview Lab → · Contrast checker → · Palette generator →

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