#8A5CCA#8A5CCA

#8A5CCA is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.5% C 0.166 H 300.6°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A5CCA
RGBrgb(138, 92, 202)
HSLhsl(265, 51%, 58%)
HSVhsv(265, 54%, 79%)
CMYKcmyk(31.7%, 54.5%, 0%, 20.8%)
CIE-LABlab(48.66, 41.50, -50.54)
CIE-LCHlch(48.66, 65.39, 309.39°)
OKLaboklab(57.48% 0.0844 -0.1428)
OKLCHoklch(57.48% 0.166 300.6)
XYZxyz(24.9665, 17.3217, 57.8938)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CCA #9CCA5C
analogous
#5C65CA #8A5CCA #C15CCA
triadic
#8A5CCA #CA8A5C #5CCA8A
tetradic
#8A5CCA #CA5C65 #9CCA5C #5CCAC1
square
#8A5CCA #CA5C65 #9CCA5C #5CCAC1
split-complementary
#8A5CCA #CAC15C #65CA5C
monochromatic
#4F2A81 #6B39B0 #8A5CCA #AB8AD9 #CCB8E8

Accessibility & contrast

On white

4.70
#8A5CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A5CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CCA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CCA#FFFFFF#000000##FFFFFF
##8A5CCA1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3173CE
Deuteranopia (green-blind)
#4073C7
Tritanopia (blue-blind)
#7D728A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5cca;
/* rgb */ color: rgb(138, 92, 202);
/* oklch */ color: oklch(57.5% 0.166 300.6);
Tailwind
colors: {
  custom: {
    50: '#af8cdb',
    500: '#8a5cca',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cca;
$custom-light: #af8cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cca",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 202
  },
  "hsl": {
    "h": 265.091,
    "s": 50.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57482,
    "c": 0.16584,
    "h": 300.6
  },
  "luminance": 0.17322
}

Semantic roles & 50–950 ramp

primary
#8A5CCA
secondary
#C5D7AB
accent
#DA4D9F
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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