#8A5DE1#8A5DE1

#8A5DE1 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.1% C 0.193 H 295.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A5DE1
RGBrgb(138, 93, 225)
HSLhsl(260, 69%, 62%)
HSVhsv(260, 59%, 88%)
CMYKcmyk(38.7%, 58.7%, 0%, 11.8%)
CIE-LABlab(50.30, 46.86, -61.02)
CIE-LCHlch(50.30, 76.94, 307.53°)
OKLaboklab(59.14% 0.0833 -0.1735)
OKLCHoklch(59.14% 0.193 295.6)
XYZxyz(27.9827, 18.6677, 73.3485)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DE1 #B4E15D
analogous
#5D72E1 #8A5DE1 #CC5DE1
triadic
#8A5DE1 #E18A5D #5DE18A
tetradic
#8A5DE1 #E15D72 #B4E15D #5DE1CC
square
#8A5DE1 #E15D72 #B4E15D #5DE1CC
split-complementary
#8A5DE1 #E1CC5D #72E15D
monochromatic
#4C1FA5 #6529D7 #8A5DE1 #AF91EB #D5C4F4

Accessibility & contrast

On white

4.44
#8A5DE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#8A5DE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DE1
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DE1#FFFFFF#000000##000000
##8A5DE11.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E5
Deuteranopia (green-blind)
#2276DE
Tritanopia (blue-blind)
#747A96
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5de1;
/* rgb */ color: rgb(138, 93, 225);
/* oklch */ color: oklch(59.1% 0.193 295.6);
Tailwind
colors: {
  custom: {
    50: '#b18deb',
    500: '#8a5de1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5de1;
$custom-light: #b18deb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5de1",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 225
  },
  "hsl": {
    "h": 260.455,
    "s": 68.75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59138,
    "c": 0.19251,
    "h": 295.6
  },
  "luminance": 0.18668
}

Semantic roles & 50–950 ramp

primary
#8A5DE1
secondary
#D5E5B5
accent
#D11591
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DE1

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

Preview Lab → · Contrast checker → · Palette generator →

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