#8A64B4#8A64B4

#8A64B4 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.5% C 0.125 H 304.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A64B4
RGBrgb(138, 100, 180)
HSLhsl(269, 35%, 55%)
HSVhsv(269, 44%, 71%)
CMYKcmyk(23.3%, 44.4%, 0%, 29.4%)
CIE-LABlab(49.27, 31.48, -36.87)
CIE-LCHlch(49.27, 48.48, 310.50°)
OKLaboklab(57.55% 0.0712 -0.1029)
OKLCHoklch(57.55% 0.125 304.7)
XYZxyz(23.2749, 17.8130, 45.3833)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A64B4 #8EB464
analogous
#6466B4 #8A64B4 #B264B4
triadic
#8A64B4 #B48A64 #64B48A
tetradic
#8A64B4 #B46466 #8EB464 #64B4B2
square
#8A64B4 #B46466 #8EB464 #64B4B2
split-complementary
#8A64B4 #B4B264 #66B464
monochromatic
#4D336A #6B4793 #8A64B4 #A98DC8 #C8B6DC

Accessibility & contrast

On white

4.60
#8A64B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8A64B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A64B4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A64B4#FFFFFF#000000##FFFFFF
##8A64B41.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5074B7
Deuteranopia (green-blind)
#5975B2
Tritanopia (blue-blind)
#837183
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a64b4;
/* rgb */ color: rgb(138, 100, 180);
/* oklch */ color: oklch(57.5% 0.125 304.7);
Tailwind
colors: {
  custom: {
    50: '#ae91cb',
    500: '#8a64b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a64b4;
$custom-light: #ae91cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a64b4",
  "rgb": {
    "r": 138,
    "g": 100,
    "b": 180
  },
  "hsl": {
    "h": 268.5,
    "s": 34.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57545,
    "c": 0.12511,
    "h": 304.7
  },
  "luminance": 0.17813
}

Semantic roles & 50–950 ramp

primary
#8A64B4
secondary
#BBCBA9
accent
#CB5D97
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100D13
muted
#7F7D82

Preview Lab

Preview with #8A64B4

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

Preview Lab → · Contrast checker → · Palette generator →

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