#8A46CC#8A46CC

#8A46CC is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.4% C 0.200 H 303.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8A46CC
RGBrgb(138, 70, 204)
HSLhsl(270, 57%, 54%)
HSVhsv(270, 66%, 80%)
CMYKcmyk(32.4%, 65.7%, 0%, 20%)
CIE-LABlab(44.44, 53.61, -58.48)
CIE-LCHlch(44.44, 79.34, 312.51°)
OKLaboklab(54.44% 0.1108 -0.166)
OKLCHoklch(54.44% 0.2 303.7)
XYZxyz(23.5680, 14.1433, 58.6033)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46CC #88CC46
analogous
#4746CC #8A46CC #CC46CB
triadic
#8A46CC #CC8A46 #46CC8A
tetradic
#8A46CC #CC4746 #88CC46 #46CBCC
square
#8A46CC #CC4746 #88CC46 #46CBCC
split-complementary
#8A46CC #CBCC46 #46CC47
monochromatic
#4C2177 #6B2EA7 #8A46CC #A876D9 #C7A6E6

Accessibility & contrast

On white

5.49
#8A46CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A46CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46CC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46CC#FFFFFF#000000##FFFFFF
##8A46CC1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#1769C9
Tritanopia (blue-blind)
#7D6483
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a46cc;
/* rgb */ color: rgb(138, 70, 204);
/* oklch */ color: oklch(54.4% 0.200 303.7);
Tailwind
colors: {
  custom: {
    50: '#b17edc',
    500: '#8a46cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a46cc;
$custom-light: #b17edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46cc",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 270.448,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54443,
    "c": 0.19964,
    "h": 303.7
  },
  "luminance": 0.14143
}

Semantic roles & 50–950 ramp

primary
#8A46CC
secondary
#B6D49A
accent
#E04893
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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