#8A5CE6#8A5CE6

#8A5CE6 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.3% C 0.200 H 294.9°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A5CE6
RGBrgb(138, 92, 230)
HSLhsl(260, 73%, 63%)
HSVhsv(260, 60%, 90%)
CMYKcmyk(40%, 60%, 0%, 9.8%)
CIE-LABlab(50.42, 48.72, -63.65)
CIE-LCHlch(50.42, 80.15, 307.43°)
OKLaboklab(59.33% 0.0843 -0.1813)
OKLCHoklch(59.33% 0.2 294.9)
XYZxyz(28.5875, 18.7701, 76.9644)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CE6 #B8E65C
analogous
#5C73E6 #8A5CE6 #CF5CE6
triadic
#8A5CE6 #E68A5C #5CE68A
tetradic
#8A5CE6 #E65C73 #B8E65C #5CE6CF
square
#8A5CE6 #E65C73 #B8E65C #5CE6CF
split-complementary
#8A5CE6 #E6CF5C #73E65C
monochromatic
#4B1BAD #6427DE #8A5CE6 #B091EE #D6C6F6

Accessibility & contrast

On white

4.42
#8A5CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#8A5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CE6
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CE6#FFFFFF#000000##000000
##8A5CE61.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#1076E3
Tritanopia (blue-blind)
#727B98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5ce6;
/* rgb */ color: rgb(138, 92, 230);
/* oklch */ color: oklch(59.3% 0.200 294.9);
Tailwind
colors: {
  custom: {
    50: '#b28cef',
    500: '#8a5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ce6;
$custom-light: #b28cef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ce6",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 260,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.5933,
    "c": 0.19991,
    "h": 294.9
  },
  "luminance": 0.18771
}

Semantic roles & 50–950 ramp

primary
#8A5CE6
secondary
#D7E8B6
accent
#D61094
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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