#8A5CD6#8A5CD6

#8A5CD6 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.3% C 0.181 H 298.0°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#8A5CD6
RGBrgb(138, 92, 214)
HSLhsl(263, 60%, 60%)
HSVhsv(263, 57%, 84%)
CMYKcmyk(35.5%, 57%, 0%, 16.1%)
CIE-LABlab(49.39, 44.56, -56.24)
CIE-LCHlch(49.39, 71.75, 308.39°)
OKLaboklab(58.25% 0.0846 -0.1595)
OKLCHoklch(58.25% 0.181 298)
XYZxyz(26.4430, 17.9123, 65.6696)
Luminance0.1791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD6 #A8D65C
analogous
#5C6BD6 #8A5CD6 #C75CD6
triadic
#8A5CD6 #D68A5C #5CD68A
tetradic
#8A5CD6 #D65C6B #A8D65C #5CD6C7
square
#8A5CD6 #D65C6B #A8D65C #5CD6C7
split-complementary
#8A5CD6 #D6C75C #6BD65C
monochromatic
#4E2593 #6831C4 #8A5CD6 #AD8DE2 #D0BEEF

Accessibility & contrast

On white

4.58
#8A5CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8A5CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CD6
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD6#FFFFFF#000000##000000
##8A5CD61.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F76DA
Deuteranopia (green-blind)
#3274D3
Tritanopia (blue-blind)
#797590
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5cd6;
/* rgb */ color: rgb(138, 92, 214);
/* oklch */ color: oklch(58.3% 0.181 298.0);
Tailwind
colors: {
  custom: {
    50: '#b08ce3',
    500: '#8a5cd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd6;
$custom-light: #b08ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd6",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 214
  },
  "hsl": {
    "h": 262.623,
    "s": 59.804,
    "l": 60
  },
  "oklch": {
    "l": 0.5825,
    "c": 0.18056,
    "h": 298
  },
  "luminance": 0.17913
}

Semantic roles & 50–950 ramp

primary
#8A5CD6
secondary
#CDDEAF
accent
#E345A7
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C15
muted
#807D84

Preview Lab

Preview with #8A5CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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