#8A46C2#8A46C2

#8A46C2 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.7% C 0.189 H 306.3°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A46C2
RGBrgb(138, 70, 194)
HSLhsl(273, 50%, 52%)
HSVhsv(273, 64%, 76%)
CMYKcmyk(28.9%, 63.9%, 0%, 23.9%)
CIE-LABlab(43.77, 51.25, -53.77)
CIE-LCHlch(43.77, 74.28, 313.63°)
OKLaboklab(53.75% 0.1117 -0.1522)
OKLCHoklch(53.75% 0.189 306.3)
XYZxyz(22.4069, 13.6788, 52.4883)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46C2 #7EC246
analogous
#4C46C2 #8A46C2 #C246BC
triadic
#8A46C2 #C28A46 #46C28A
tetradic
#8A46C2 #C24C46 #7EC246 #46BCC2
square
#8A46C2 #C24C46 #7EC246 #46BCC2
split-complementary
#8A46C2 #BCC246 #46C24C
monochromatic
#4A236A #6A3299 #8A46C2 #A774D1 #C4A2E0

Accessibility & contrast

On white

5.62
#8A46C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A46C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46C2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46C2#FFFFFF#000000##FFFFFF
##8A46C21.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#2A68BF
Tritanopia (blue-blind)
#81607E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a46c2;
/* rgb */ color: rgb(138, 70, 194);
/* oklch */ color: oklch(53.7% 0.189 306.3);
Tailwind
colors: {
  custom: {
    50: '#b07dd5',
    500: '#8a46c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a46c2;
$custom-light: #b07dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46c2",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 272.903,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53748,
    "c": 0.18875,
    "h": 306.3
  },
  "luminance": 0.13679
}

Semantic roles & 50–950 ramp

primary
#8A46C2
secondary
#AFCD97
accent
#DA4E8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A46C2

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

Preview Lab → · Contrast checker → · Palette generator →

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