#8A5DCA#8A5DCA

#8A5DCA is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.6% C 0.164 H 300.4°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8A5DCA
RGBrgb(138, 93, 202)
HSLhsl(265, 51%, 58%)
HSVhsv(265, 54%, 79%)
CMYKcmyk(31.7%, 54%, 0%, 20.8%)
CIE-LABlab(48.88, 40.94, -50.19)
CIE-LCHlch(48.88, 64.77, 309.20°)
OKLaboklab(57.64% 0.0831 -0.1418)
OKLCHoklch(57.64% 0.164 300.4)
XYZxyz(25.0537, 17.4961, 57.9228)
Luminance0.1750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DCA #9DCA5D
analogous
#5D66CA #8A5DCA #C15DCA
triadic
#8A5DCA #CA8A5D #5DCA8A
tetradic
#8A5DCA #CA5D66 #9DCA5D #5DCAC1
square
#8A5DCA #CA5D66 #9DCA5D #5DCAC1
split-complementary
#8A5DCA #CAC15D #66CA5D
monochromatic
#4F2B82 #6B3AB0 #8A5DCA #AB8BD9 #CDB9E8

Accessibility & contrast

On white

4.67
#8A5DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8A5DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DCA
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DCA#FFFFFF#000000##FFFFFF
##8A5DCA1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3374CE
Deuteranopia (green-blind)
#4173C7
Tritanopia (blue-blind)
#7D728B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5dca;
/* rgb */ color: rgb(138, 93, 202);
/* oklch */ color: oklch(57.6% 0.164 300.4);
Tailwind
colors: {
  custom: {
    50: '#af8cdb',
    500: '#8a5dca',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dca;
$custom-light: #af8cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dca",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 264.771,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57642,
    "c": 0.16432,
    "h": 300.4
  },
  "luminance": 0.17496
}

Semantic roles & 50–950 ramp

primary
#8A5DCA
secondary
#C5D7AC
accent
#DA4EA0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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