#8A46B3#8A46B3

#8A46B3 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.172 H 310.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8A46B3
RGBrgb(138, 70, 179)
HSLhsl(277, 44%, 49%)
HSVhsv(277, 61%, 70%)
CMYKcmyk(22.9%, 60.9%, 0%, 29.8%)
CIE-LABlab(42.82, 47.80, -46.51)
CIE-LCHlch(42.82, 66.70, 315.78°)
OKLaboklab(52.76% 0.1122 -0.1309)
OKLCHoklch(52.76% 0.172 310.6)
XYZxyz(20.8065, 13.0387, 44.0597)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46B3 #6FB346
analogous
#5446B3 #8A46B3 #B346A6
triadic
#8A46B3 #B38A46 #46B38A
tetradic
#8A46B3 #B35446 #6FB346 #46A6B3
square
#8A46B3 #B35446 #6FB346 #46A6B3
split-complementary
#8A46B3 #A6B346 #46B354
monochromatic
#46245B #683587 #8A46B3 #A66FC7 #C19BD8

Accessibility & contrast

On white

5.82
#8A46B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8A46B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46B3
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46B3#FFFFFF#000000##FFFFFF
##8A46B31.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B62B6
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#855B76
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a46b3;
/* rgb */ color: rgb(138, 70, 179);
/* oklch */ color: oklch(52.8% 0.172 310.6);
Tailwind
colors: {
  custom: {
    50: '#af7dca',
    500: '#8a46b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a46b3;
$custom-light: #af7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46b3",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 179
  },
  "hsl": {
    "h": 277.431,
    "s": 43.775,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52758,
    "c": 0.17239,
    "h": 310.6
  },
  "luminance": 0.13038
}

Semantic roles & 50–950 ramp

primary
#8A46B3
secondary
#A4C490
accent
#D45484
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A46B3

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

Preview Lab → · Contrast checker → · Palette generator →

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