#8A46B5#8A46B5

#8A46B5 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.175 H 310.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A46B5
RGBrgb(138, 70, 181)
HSLhsl(277, 44%, 49%)
HSVhsv(277, 61%, 71%)
CMYKcmyk(23.8%, 61.3%, 0%, 29%)
CIE-LABlab(42.94, 48.25, -47.49)
CIE-LCHlch(42.94, 67.71, 315.45°)
OKLaboklab(52.89% 0.1122 -0.1338)
OKLCHoklch(52.89% 0.175 310)
XYZxyz(21.0103, 13.1202, 45.1327)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46B5 #71B546
analogous
#5346B5 #8A46B5 #B546A9
triadic
#8A46B5 #B58A46 #46B58A
tetradic
#8A46B5 #B55346 #71B546 #46A9B5
square
#8A46B5 #B55346 #71B546 #46A9B5
split-complementary
#8A46B5 #A9B546 #46B553
monochromatic
#47245D #683589 #8A46B5 #A670C8 #C29CD9

Accessibility & contrast

On white

5.79
#8A46B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A46B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46B5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46B5#FFFFFF#000000##FFFFFF
##8A46B51.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1762B8
Deuteranopia (green-blind)
#3967B2
Tritanopia (blue-blind)
#845B77
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a46b5;
/* rgb */ color: rgb(138, 70, 181);
/* oklch */ color: oklch(52.9% 0.175 310.0);
Tailwind
colors: {
  custom: {
    50: '#af7dcc',
    500: '#8a46b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a46b5;
$custom-light: #af7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46b5",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 181
  },
  "hsl": {
    "h": 276.757,
    "s": 44.223,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52886,
    "c": 0.17458,
    "h": 310
  },
  "luminance": 0.1312
}

Semantic roles & 50–950 ramp

primary
#8A46B5
secondary
#A6C592
accent
#D45485
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A46B5

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

Preview Lab → · Contrast checker → · Palette generator →

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