#8A5AAA#8A5AAA

#8A5AAA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.3% C 0.130 H 310.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A5AAA
RGBrgb(138, 90, 170)
HSLhsl(276, 32%, 51%)
HSVhsv(276, 47%, 67%)
CMYKcmyk(18.8%, 47.1%, 0%, 33.3%)
CIE-LABlab(46.47, 34.87, -35.43)
CIE-LCHlch(46.47, 49.71, 314.55°)
OKLaboklab(55.29% 0.0842 -0.0987)
OKLCHoklch(55.29% 0.13 310.5)
XYZxyz(21.3918, 15.6182, 39.9101)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AAA #7AAA5A
analogous
#625AAA #8A5AAA #AA5AA2
triadic
#8A5AAA #AA8A5A #5AAA8A
tetradic
#8A5AAA #AA625A #7AAA5A #5AA2AA
square
#8A5AAA #AA625A #7AAA5A #5AA2AA
split-complementary
#8A5AAA #A2AA5A #5AAA62
monochromatic
#492F5B #6A4483 #8A5AAA #A782BF #C3ABD4

Accessibility & contrast

On white

5.09
#8A5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AAA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AAA#FFFFFF#000000##FFFFFF
##8A5AAA1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486CAD
Deuteranopia (green-blind)
#546FA8
Tritanopia (blue-blind)
#86677A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a5aaa;
/* rgb */ color: rgb(138, 90, 170);
/* oklch */ color: oklch(55.3% 0.130 310.5);
Tailwind
colors: {
  custom: {
    50: '#ae8ac3',
    500: '#8a5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aaa;
$custom-light: #ae8ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aaa",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 276,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55286,
    "c": 0.12968,
    "h": 310.5
  },
  "luminance": 0.15618
}

Semantic roles & 50–950 ramp

primary
#8A5AAA
secondary
#ACC29E
accent
#C86089
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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