#8A64AB#8A64AB

#8A64AB is a mid, moderate violet. Relative luminance 0.175; OKLCH L 57.1% C 0.114 H 307.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8A64AB
RGBrgb(138, 100, 171)
HSLhsl(272, 30%, 53%)
HSVhsv(272, 42%, 67%)
CMYKcmyk(19.3%, 41.5%, 0%, 32.9%)
CIE-LABlab(48.83, 29.34, -32.30)
CIE-LCHlch(48.83, 43.64, 312.25°)
OKLaboklab(57.07% 0.0696 -0.0897)
OKLCHoklch(57.07% 0.114 307.8)
XYZxyz(22.3877, 17.4581, 40.7105)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A64AB #85AB64
analogous
#6664AB #8A64AB #AB64A8
triadic
#8A64AB #AB8A64 #64AB8A
tetradic
#8A64AB #AB6664 #85AB64 #64A8AB
square
#8A64AB #AB6664 #85AB64 #64A8AB
split-complementary
#8A64AB #A8AB64 #64AB66
monochromatic
#4C3460 #6B4A88 #8A64AB #A88CC1 #C6B3D6

Accessibility & contrast

On white

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

On black

4.49
#8A64AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A64AB#FFFFFF#000000##FFFFFF
##8A64AB1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5472AE
Deuteranopia (green-blind)
#5D74A9
Tritanopia (blue-blind)
#866F7F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a64ab;
/* rgb */ color: rgb(138, 100, 171);
/* oklch */ color: oklch(57.1% 0.114 307.8);
Tailwind
colors: {
  custom: {
    50: '#ad91c4',
    500: '#8a64ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a64ab;
$custom-light: #ad91c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a64ab",
  "rgb": {
    "r": 138,
    "g": 100,
    "b": 171
  },
  "hsl": {
    "h": 272.113,
    "s": 29.707,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57074,
    "c": 0.11351,
    "h": 307.8
  },
  "luminance": 0.17458
}

Semantic roles & 50–950 ramp

primary
#8A64AB
secondary
#B4C5A6
accent
#C66290
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A64AB

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

Preview Lab → · Contrast checker → · Palette generator →

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