#8A64D5#8A64D5

#8A64D5 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.5% C 0.168 H 296.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A64D5
RGBrgb(138, 100, 213)
HSLhsl(260, 57%, 61%)
HSVhsv(260, 53%, 84%)
CMYKcmyk(35.2%, 53.1%, 0%, 16.5%)
CIE-LABlab(51.06, 39.81, -52.99)
CIE-LCHlch(51.06, 66.28, 306.92°)
OKLaboklab(59.46% 0.0747 -0.15)
OKLCHoklch(59.46% 0.168 296.5)
XYZxyz(27.0456, 19.3213, 65.2424)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A64D5 #AFD564
analogous
#6477D5 #8A64D5 #C364D5
triadic
#8A64D5 #D58A64 #64D58A
tetradic
#8A64D5 #D56477 #AFD564 #64D5C3
square
#8A64D5 #D56477 #AFD564 #64D5C3
split-complementary
#8A64D5 #D5C364 #77D564
monochromatic
#4D2996 #6636C6 #8A64D5 #AE94E2 #D3C4EF

Accessibility & contrast

On white

4.32
#8A64D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A64D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A64D5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A64D5#FFFFFF#000000##000000
##8A64D51.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#367AD9
Deuteranopia (green-blind)
#4078D2
Tritanopia (blue-blind)
#797B93
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a64d5;
/* rgb */ color: rgb(138, 100, 213);
/* oklch */ color: oklch(59.5% 0.168 296.5);
Tailwind
colors: {
  custom: {
    50: '#b091e2',
    500: '#8a64d5',
    950: '#000000',
  },
}
SCSS
$custom: #8a64d5;
$custom-light: #b091e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a64d5",
  "rgb": {
    "r": 138,
    "g": 100,
    "b": 213
  },
  "hsl": {
    "h": 260.177,
    "s": 57.36,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59464,
    "c": 0.16753,
    "h": 296.5
  },
  "luminance": 0.19322
}

Semantic roles & 50–950 ramp

primary
#8A64D5
secondary
#D1E0B5
accent
#C5218E
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A64D5

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

Preview Lab → · Contrast checker → · Palette generator →

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