#8A64AA#8A64AA

#8A64AA is a mid, moderate violet. Relative luminance 0.174; OKLCH L 57.0% C 0.112 H 308.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8A64AA
RGBrgb(138, 100, 170)
HSLhsl(273, 29%, 53%)
HSVhsv(273, 41%, 67%)
CMYKcmyk(18.8%, 41.2%, 0%, 33.3%)
CIE-LABlab(48.79, 29.10, -31.79)
CIE-LCHlch(48.79, 43.10, 312.47°)
OKLaboklab(57.02% 0.0694 -0.0882)
OKLCHoklch(57.02% 0.112 308.2)
XYZxyz(22.2927, 17.4201, 40.2104)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A64AA #84AA64
analogous
#6764AA #8A64AA #AA64A7
triadic
#8A64AA #AA8A64 #64AA8A
tetradic
#8A64AA #AA6764 #84AA64 #64A7AA
square
#8A64AA #AA6764 #84AA64 #64A7AA
split-complementary
#8A64AA #A7AA64 #64AA67
monochromatic
#4C345F #6B4A87 #8A64AA #A88CC0 #C6B3D5

Accessibility & contrast

On white

4.68
#8A64AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8A64AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A64AA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A64AA#FFFFFF#000000##FFFFFF
##8A64AA1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5572AD
Deuteranopia (green-blind)
#5E74A8
Tritanopia (blue-blind)
#866F7F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a64aa;
/* rgb */ color: rgb(138, 100, 170);
/* oklch */ color: oklch(57.0% 0.112 308.2);
Tailwind
colors: {
  custom: {
    50: '#ad91c3',
    500: '#8a64aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a64aa;
$custom-light: #ad91c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a64aa",
  "rgb": {
    "r": 138,
    "g": 100,
    "b": 170
  },
  "hsl": {
    "h": 272.571,
    "s": 29.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57023,
    "c": 0.11223,
    "h": 308.2
  },
  "luminance": 0.1742
}

Semantic roles & 50–950 ramp

primary
#8A64AA
secondary
#B4C4A6
accent
#C56290
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A64AA

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

Preview Lab → · Contrast checker → · Palette generator →

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