#8A5DE3#8A5DE3

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

Color values

HEX#8A5DE3
RGBrgb(138, 93, 227)
HSLhsl(260, 71%, 63%)
HSVhsv(260, 59%, 89%)
CMYKcmyk(39.2%, 59%, 0%, 11%)
CIE-LABlab(50.43, 47.39, -61.94)
CIE-LCHlch(50.43, 77.99, 307.42°)
OKLaboklab(59.27% 0.0833 -0.1762)
OKLCHoklch(59.27% 0.195 295.3)
XYZxyz(28.2571, 18.7774, 74.7938)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DE3 #B6E35D
analogous
#5D73E3 #8A5DE3 #CD5DE3
triadic
#8A5DE3 #E38A5D #5DE38A
tetradic
#8A5DE3 #E35D73 #B6E35D #5DE3CD
square
#8A5DE3 #E35D73 #B6E35D #5DE3CD
split-complementary
#8A5DE3 #E3CD5D #73E35D
monochromatic
#4C1DA8 #6429DA #8A5DE3 #B091EC #D5C5F5

Accessibility & contrast

On white

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

On black

4.76
#8A5DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DE3
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DE3#FFFFFF#000000##000000
##8A5DE31.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E7
Deuteranopia (green-blind)
#1D76E0
Tritanopia (blue-blind)
#747A97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5de3;
/* rgb */ color: rgb(138, 93, 227);
/* oklch */ color: oklch(59.3% 0.195 295.3);
Tailwind
colors: {
  custom: {
    50: '#b18ded',
    500: '#8a5de3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5de3;
$custom-light: #b18ded;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5de3",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 227
  },
  "hsl": {
    "h": 260.149,
    "s": 70.526,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59274,
    "c": 0.19493,
    "h": 295.3
  },
  "luminance": 0.18778
}

Semantic roles & 50–950 ramp

primary
#8A5DE3
secondary
#D6E6B6
accent
#D31392
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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