#8A46C5#8A46C5

#8A46C5 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 54.0% C 0.192 H 305.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A46C5
RGBrgb(138, 70, 197)
HSLhsl(272, 52%, 52%)
HSVhsv(272, 64%, 77%)
CMYKcmyk(29.9%, 64.5%, 0%, 22.7%)
CIE-LABlab(43.97, 51.96, -55.19)
CIE-LCHlch(43.97, 75.80, 313.27°)
OKLaboklab(53.95% 0.1114 -0.1564)
OKLCHoklch(53.95% 0.192 305.5)
XYZxyz(22.7472, 13.8150, 54.2807)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46C5 #81C546
analogous
#4B46C5 #8A46C5 #C546C0
triadic
#8A46C5 #C58A46 #46C58A
tetradic
#8A46C5 #C54B46 #81C546 #46C0C5
square
#8A46C5 #C54B46 #81C546 #46C0C5
split-complementary
#8A46C5 #C0C546 #46C54B
monochromatic
#4B236E #6B319D #8A46C5 #A775D4 #C5A3E2

Accessibility & contrast

On white

5.58
#8A46C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A46C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46C5
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46C5#FFFFFF#000000##FFFFFF
##8A46C51.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#2568C2
Tritanopia (blue-blind)
#80617F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a46c5;
/* rgb */ color: rgb(138, 70, 197);
/* oklch */ color: oklch(54.0% 0.192 305.5);
Tailwind
colors: {
  custom: {
    50: '#b07ed7',
    500: '#8a46c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a46c5;
$custom-light: #b07ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46c5",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 197
  },
  "hsl": {
    "h": 272.126,
    "s": 52.263,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53954,
    "c": 0.19202,
    "h": 305.5
  },
  "luminance": 0.13815
}

Semantic roles & 50–950 ramp

primary
#8A46C5
secondary
#B1CF98
accent
#DC4C8F
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A46C5

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

Preview Lab → · Contrast checker → · Palette generator →

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