#8A5ACA#8A5ACA

#8A5ACA is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.2% C 0.169 H 301.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A5ACA
RGBrgb(138, 90, 202)
HSLhsl(266, 51%, 57%)
HSVhsv(266, 55%, 79%)
CMYKcmyk(31.7%, 55.4%, 0%, 20.8%)
CIE-LABlab(48.23, 42.61, -51.22)
CIE-LCHlch(48.23, 66.63, 309.75°)
OKLaboklab(57.17% 0.0869 -0.1448)
OKLCHoklch(57.17% 0.169 301)
XYZxyz(24.7956, 16.9798, 57.8368)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ACA #9ACA5A
analogous
#5A62CA #8A5ACA #C25ACA
triadic
#8A5ACA #CA8A5A #5ACA8A
tetradic
#8A5ACA #CA5A62 #9ACA5A #5ACAC2
square
#8A5ACA #CA5A62 #9ACA5A #5ACAC2
split-complementary
#8A5ACA #CAC25A #62CA5A
monochromatic
#4F2980 #6B38AF #8A5ACA #AB88D9 #CCB7E8

Accessibility & contrast

On white

4.78
#8A5ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8A5ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ACA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ACA#FFFFFF#000000##FFFFFF
##8A5ACA1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C72CE
Deuteranopia (green-blind)
#3D72C7
Tritanopia (blue-blind)
#7D7089
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5aca;
/* rgb */ color: rgb(138, 90, 202);
/* oklch */ color: oklch(57.2% 0.169 301.0);
Tailwind
colors: {
  custom: {
    50: '#b08adb',
    500: '#8a5aca',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aca;
$custom-light: #b08adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aca",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 202
  },
  "hsl": {
    "h": 265.714,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57166,
    "c": 0.16888,
    "h": 301
  },
  "luminance": 0.1698
}

Semantic roles & 50–950 ramp

primary
#8A5ACA
secondary
#C3D7A9
accent
#DB4D9E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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