#8A64A2#8A64A2

#8A64A2 is a mid, moderate violet. Relative luminance 0.171; OKLCH L 56.6% C 0.102 H 311.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A64A2
RGBrgb(138, 100, 162)
HSLhsl(277, 25%, 51%)
HSVhsv(277, 38%, 64%)
CMYKcmyk(14.8%, 38.3%, 0%, 36.5%)
CIE-LABlab(48.42, 27.26, -27.67)
CIE-LCHlch(48.42, 38.84, 314.57°)
OKLaboklab(56.63% 0.0677 -0.0763)
OKLCHoklch(56.63% 0.102 311.5)
XYZxyz(21.5589, 17.1266, 36.3455)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A64A2 #7CA264
analogous
#6B64A2 #8A64A2 #A2649B
triadic
#8A64A2 #A28A64 #64A28A
tetradic
#8A64A2 #A26B64 #7CA264 #649BA2
square
#8A64A2 #A26B64 #7CA264 #649BA2
split-complementary
#8A64A2 #9BA264 #64A26B
monochromatic
#4A3457 #6A4B7E #8A64A2 #A78AB9 #C4B1D0

Accessibility & contrast

On white

4.75
#8A64A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8A64A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A64A2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A64A2#FFFFFF#000000##FFFFFF
##8A64A21.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5971A4
Deuteranopia (green-blind)
#6174A0
Tritanopia (blue-blind)
#886D7B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a64a2;
/* rgb */ color: rgb(138, 100, 162);
/* oklch */ color: oklch(56.6% 0.102 311.5);
Tailwind
colors: {
  custom: {
    50: '#ad90bd',
    500: '#8a64a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a64a2;
$custom-light: #ad90bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a64a2",
  "rgb": {
    "r": 138,
    "g": 100,
    "b": 162
  },
  "hsl": {
    "h": 276.774,
    "s": 25,
    "l": 51.373
  },
  "oklch": {
    "l": 0.56627,
    "c": 0.10202,
    "h": 311.5
  },
  "luminance": 0.17126
}

Semantic roles & 50–950 ramp

primary
#8A64A2
secondary
#AEBFA3
accent
#C1668A
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A64A2

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

Preview Lab → · Contrast checker → · Palette generator →

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