#8A46B2#8A46B2

#8A46B2 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.7% C 0.171 H 310.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A46B2
RGBrgb(138, 70, 178)
HSLhsl(278, 44%, 49%)
HSVhsv(278, 61%, 70%)
CMYKcmyk(22.5%, 60.7%, 0%, 30.2%)
CIE-LABlab(42.76, 47.57, -46.02)
CIE-LCHlch(42.76, 66.19, 315.95°)
OKLaboklab(52.7% 0.1122 -0.1295)
OKLCHoklch(52.7% 0.171 310.9)
XYZxyz(20.7058, 12.9984, 43.5290)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46B2 #6EB246
analogous
#5446B2 #8A46B2 #B246A4
triadic
#8A46B2 #B28A46 #46B28A
tetradic
#8A46B2 #B25446 #6EB246 #46A4B2
square
#8A46B2 #B25446 #6EB246 #46A4B2
split-complementary
#8A46B2 #A4B246 #46B254
monochromatic
#46235A #683586 #8A46B2 #A66FC6 #C19BD8

Accessibility & contrast

On white

5.83
#8A46B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A46B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46B2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46B2#FFFFFF#000000##FFFFFF
##8A46B21.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a46b2;
/* rgb */ color: rgb(138, 70, 178);
/* oklch */ color: oklch(52.7% 0.171 310.9);
Tailwind
colors: {
  custom: {
    50: '#af7dc9',
    500: '#8a46b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a46b2;
$custom-light: #af7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46b2",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 277.778,
    "s": 43.548,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52695,
    "c": 0.17131,
    "h": 310.9
  },
  "luminance": 0.12998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A46B2

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

Preview Lab → · Contrast checker → · Palette generator →

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