#8A5DE5#8A5DE5

#8A5DE5 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.4% C 0.197 H 294.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A5DE5
RGBrgb(138, 93, 229)
HSLhsl(260, 72%, 63%)
HSVhsv(260, 59%, 90%)
CMYKcmyk(39.7%, 59.4%, 0%, 10.2%)
CIE-LABlab(50.56, 47.92, -62.86)
CIE-LCHlch(50.56, 79.04, 307.32°)
OKLaboklab(59.41% 0.0832 -0.1789)
OKLCHoklch(59.41% 0.197 294.9)
XYZxyz(28.5347, 18.8885, 76.2560)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DE5 #B8E55D
analogous
#5D74E5 #8A5DE5 #CE5DE5
triadic
#8A5DE5 #E58A5D #5DE58A
tetradic
#8A5DE5 #E55D74 #B8E55D #5DE5CE
square
#8A5DE5 #E55D74 #B8E55D #5DE5CE
split-complementary
#8A5DE5 #E5CE5D #74E55D
monochromatic
#4B1CAC #6428DD #8A5DE5 #B092ED #D6C6F6

Accessibility & contrast

On white

4.40
#8A5DE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8A5DE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DE5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DE5#FFFFFF#000000##000000
##8A5DE51.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE9
Deuteranopia (green-blind)
#1876E2
Tritanopia (blue-blind)
#737B98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5de5;
/* rgb */ color: rgb(138, 93, 229);
/* oklch */ color: oklch(59.4% 0.197 294.9);
Tailwind
colors: {
  custom: {
    50: '#b28dee',
    500: '#8a5de5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5de5;
$custom-light: #b28dee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5de5",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 229
  },
  "hsl": {
    "h": 259.853,
    "s": 72.34,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59411,
    "c": 0.19735,
    "h": 294.9
  },
  "luminance": 0.18889
}

Semantic roles & 50–950 ramp

primary
#8A5DE5
secondary
#D7E7B7
accent
#D41194
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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