#8A46C6#8A46C6

#8A46C6 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.0% C 0.193 H 305.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A46C6
RGBrgb(138, 70, 198)
HSLhsl(272, 53%, 53%)
HSVhsv(272, 65%, 78%)
CMYKcmyk(30.3%, 64.6%, 0%, 22.4%)
CIE-LABlab(44.03, 52.19, -55.67)
CIE-LCHlch(44.03, 76.31, 313.15°)
OKLaboklab(54.02% 0.1114 -0.1578)
OKLCHoklch(54.02% 0.193 305.2)
XYZxyz(22.8622, 13.8610, 54.8861)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46C6 #82C646
analogous
#4A46C6 #8A46C6 #C646C2
triadic
#8A46C6 #C68A46 #46C68A
tetradic
#8A46C6 #C64A46 #82C646 #46C2C6
square
#8A46C6 #C64A46 #82C646 #46C2C6
split-complementary
#8A46C6 #C2C646 #46C64A
monochromatic
#4B226F #6B319E #8A46C6 #A875D4 #C5A4E3

Accessibility & contrast

On white

5.57
#8A46C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A46C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46C6
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46C6#FFFFFF#000000##FFFFFF
##8A46C61.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CA
Deuteranopia (green-blind)
#2468C3
Tritanopia (blue-blind)
#7F6180
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a46c6;
/* rgb */ color: rgb(138, 70, 198);
/* oklch */ color: oklch(54.0% 0.193 305.2);
Tailwind
colors: {
  custom: {
    50: '#b07ed8',
    500: '#8a46c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a46c6;
$custom-light: #b07ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46c6",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 198
  },
  "hsl": {
    "h": 271.875,
    "s": 52.893,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54023,
    "c": 0.19311,
    "h": 305.2
  },
  "luminance": 0.13861
}

Semantic roles & 50–950 ramp

primary
#8A46C6
secondary
#B2D098
accent
#DC4B8F
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A46C6

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

Preview Lab → · Contrast checker → · Palette generator →

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