#8A46E3#8A46E3

#8A46E3 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.224 H 298.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A46E3
RGBrgb(138, 70, 227)
HSLhsl(266, 74%, 58%)
HSVhsv(266, 69%, 89%)
CMYKcmyk(39.2%, 69.2%, 0%, 11%)
CIE-LABlab(46.08, 59.18, -68.98)
CIE-LCHlch(46.08, 90.89, 310.63°)
OKLaboklab(56.14% 0.1078 -0.1969)
OKLCHoklch(56.14% 0.224 298.7)
XYZxyz(26.5330, 15.3293, 74.2191)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46E3 #9FE346
analogous
#4650E3 #8A46E3 #D846E3
triadic
#8A46E3 #E38A46 #46E38A
tetradic
#8A46E3 #E34650 #9FE346 #46E3D8
square
#8A46E3 #E34650 #9FE346 #46E3D8
split-complementary
#8A46E3 #E3D846 #50E346
monochromatic
#4F1798 #6A1FCD #8A46E3 #AC7BEB #CDB0F3

Accessibility & contrast

On white

5.16
#8A46E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A46E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46E3
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46E3#FFFFFF#000000##FFFFFF
##8A46E31.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE8
Deuteranopia (green-blind)
#006CE0
Tritanopia (blue-blind)
#756C90
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a46e3;
/* rgb */ color: rgb(138, 70, 227);
/* oklch */ color: oklch(56.1% 0.224 298.7);
Tailwind
colors: {
  custom: {
    50: '#b37eed',
    500: '#8a46e3',
    950: '#000000',
  },
}
SCSS
$custom: #8a46e3;
$custom-light: #b37eed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46e3",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 227
  },
  "hsl": {
    "h": 265.987,
    "s": 73.709,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56137,
    "c": 0.22446,
    "h": 298.7
  },
  "luminance": 0.1533
}

Semantic roles & 50–950 ramp

primary
#8A46E3
secondary
#C7E2A3
accent
#F037A0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A46E3

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

Preview Lab → · Contrast checker → · Palette generator →

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