#8A64EC#8A64EC

#8A64EC is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.0% C 0.196 H 292.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A64EC
RGBrgb(138, 100, 236)
HSLhsl(257, 78%, 66%)
HSVhsv(257, 58%, 93%)
CMYKcmyk(41.5%, 57.6%, 0%, 7.5%)
CIE-LABlab(52.48, 45.92, -63.69)
CIE-LCHlch(52.48, 78.52, 305.79°)
OKLaboklab(60.96% 0.0751 -0.1814)
OKLCHoklch(60.96% 0.196 292.5)
XYZxyz(30.1746, 20.5729, 81.7217)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A64EC #C6EC64
analogous
#6482EC #8A64EC #CE64EC
triadic
#8A64EC #EC8A64 #64EC8A
tetradic
#8A64EC #EC6482 #C6EC64 #64ECCE
square
#8A64EC #EC6482 #C6EC64 #64ECCE
split-complementary
#8A64EC #ECCE64 #82EC64
monochromatic
#4617BE #612DE5 #8A64EC #B39BF3 #DCD1F9

Accessibility & contrast

On white

4.11
#8A64EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A64EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A64EC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A64EC#FFFFFF#000000##000000
##8A64EC1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#037FF0
Deuteranopia (green-blind)
#1C7BE9
Tritanopia (blue-blind)
#6F829E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a64ec;
/* rgb */ color: rgb(138, 100, 236);
/* oklch */ color: oklch(61.0% 0.196 292.5);
Tailwind
colors: {
  custom: {
    50: '#b291f3',
    500: '#8a64ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a64ec;
$custom-light: #b291f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a64ec",
  "rgb": {
    "r": 138,
    "g": 100,
    "b": 236
  },
  "hsl": {
    "h": 256.765,
    "s": 78.161,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60964,
    "c": 0.19631,
    "h": 292.5
  },
  "luminance": 0.20574
}

Semantic roles & 50–950 ramp

primary
#8A64EC
secondary
#E0ECBF
accent
#DA0BA0
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A64EC

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

Preview Lab → · Contrast checker → · Palette generator →

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