#8A5DAA#8A5DAA

#8A5DAA is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.8% C 0.124 H 309.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A5DAA
RGBrgb(138, 93, 170)
HSLhsl(275, 31%, 52%)
HSVhsv(275, 45%, 67%)
CMYKcmyk(18.8%, 45.3%, 0%, 33.3%)
CIE-LABlab(47.15, 33.16, -34.35)
CIE-LCHlch(47.15, 47.75, 313.98°)
OKLaboklab(55.79% 0.0798 -0.0956)
OKLCHoklch(55.79% 0.124 309.8)
XYZxyz(21.6499, 16.1346, 39.9962)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DAA #7DAA5D
analogous
#645DAA #8A5DAA #AA5DA4
triadic
#8A5DAA #AA8A5D #5DAA8A
tetradic
#8A5DAA #AA645D #7DAA5D #5DA4AA
square
#8A5DAA #AA645D #7DAA5D #5DA4AA
split-complementary
#8A5DAA #A4AA5D #5DAA64
monochromatic
#4A305C #6A4584 #8A5DAA #A785BF #C4ADD4

Accessibility & contrast

On white

4.97
#8A5DAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8A5DAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DAA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DAA#FFFFFF#000000##FFFFFF
##8A5DAA1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6EAD
Deuteranopia (green-blind)
#5771A8
Tritanopia (blue-blind)
#86697B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5daa;
/* rgb */ color: rgb(138, 93, 170);
/* oklch */ color: oklch(55.8% 0.124 309.8);
Tailwind
colors: {
  custom: {
    50: '#ae8cc3',
    500: '#8a5daa',
    950: '#000000',
  },
}
SCSS
$custom: #8a5daa;
$custom-light: #ae8cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5daa",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 170
  },
  "hsl": {
    "h": 275.065,
    "s": 31.174,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55795,
    "c": 0.12449,
    "h": 309.8
  },
  "luminance": 0.16134
}

Semantic roles & 50–950 ramp

primary
#8A5DAA
secondary
#AFC2A0
accent
#C7608B
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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