#8A5ACC#8A5ACC

#8A5ACC is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.3% C 0.171 H 300.5°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A5ACC
RGBrgb(138, 90, 204)
HSLhsl(265, 53%, 58%)
HSVhsv(265, 56%, 80%)
CMYKcmyk(32.4%, 55.9%, 0%, 20%)
CIE-LABlab(48.35, 43.11, -52.18)
CIE-LCHlch(48.35, 67.69, 309.56°)
OKLaboklab(57.29% 0.087 -0.1476)
OKLCHoklch(57.29% 0.171 300.5)
XYZxyz(25.0339, 17.0751, 59.0920)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ACC #9CCC5A
analogous
#5A63CC #8A5ACC #C35ACC
triadic
#8A5ACC #CC8A5A #5ACC8A
tetradic
#8A5ACC #CC5A63 #9CCC5A #5ACCC3
square
#8A5ACC #CC5A63 #9CCC5A #5ACCC3
split-complementary
#8A5ACC #CCC35A #63CC5A
monochromatic
#4F2983 #6B37B2 #8A5ACC #AB89DA #CCB7E9

Accessibility & contrast

On white

4.76
#8A5ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8A5ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ACC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ACC#FFFFFF#000000##FFFFFF
##8A5ACC1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2972D0
Deuteranopia (green-blind)
#3B72C9
Tritanopia (blue-blind)
#7C718A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5acc;
/* rgb */ color: rgb(138, 90, 204);
/* oklch */ color: oklch(57.3% 0.171 300.5);
Tailwind
colors: {
  custom: {
    50: '#b08adc',
    500: '#8a5acc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5acc;
$custom-light: #b08adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5acc",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 204
  },
  "hsl": {
    "h": 265.263,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57293,
    "c": 0.17132,
    "h": 300.5
  },
  "luminance": 0.17075
}

Semantic roles & 50–950 ramp

primary
#8A5ACC
secondary
#C5D8AA
accent
#DC4C9F
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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