#8A5CD2#8A5CD2

#8A5CD2 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.0% C 0.176 H 298.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A5CD2
RGBrgb(138, 92, 210)
HSLhsl(263, 57%, 59%)
HSVhsv(263, 56%, 82%)
CMYKcmyk(34.3%, 56.2%, 0%, 17.6%)
CIE-LABlab(49.14, 43.53, -54.35)
CIE-LCHlch(49.14, 69.63, 308.69°)
OKLaboklab(57.99% 0.0846 -0.1539)
OKLCHoklch(57.99% 0.176 298.8)
XYZxyz(25.9384, 17.7104, 63.0122)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD2 #A4D25C
analogous
#5C69D2 #8A5CD2 #C55CD2
triadic
#8A5CD2 #D28A5C #5CD28A
tetradic
#8A5CD2 #D25C69 #A4D25C #5CD2C5
square
#8A5CD2 #D25C69 #A4D25C #5CD2C5
split-complementary
#8A5CD2 #D2C55C #69D25C
monochromatic
#4F278D #6934BD #8A5CD2 #AC8CDF #CFBCEC

Accessibility & contrast

On white

4.62
#8A5CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8A5CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CD2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD2#FFFFFF#000000##FFFFFF
##8A5CD21.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2675D6
Deuteranopia (green-blind)
#3774CF
Tritanopia (blue-blind)
#7A748E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5cd2;
/* rgb */ color: rgb(138, 92, 210);
/* oklch */ color: oklch(58.0% 0.176 298.8);
Tailwind
colors: {
  custom: {
    50: '#b08ce0',
    500: '#8a5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd2;
$custom-light: #b08ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd2",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 263.39,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5799,
    "c": 0.17566,
    "h": 298.8
  },
  "luminance": 0.17711
}

Semantic roles & 50–950 ramp

primary
#8A5CD2
secondary
#CADCAE
accent
#E048A5
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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