#8A5DE4#8A5DE4

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

Color values

HEX#8A5DE4
RGBrgb(138, 93, 228)
HSLhsl(260, 71%, 63%)
HSVhsv(260, 59%, 89%)
CMYKcmyk(39.5%, 59.2%, 0%, 10.6%)
CIE-LABlab(50.49, 47.65, -62.40)
CIE-LCHlch(50.49, 78.51, 307.37°)
OKLaboklab(59.34% 0.0832 -0.1776)
OKLCHoklch(59.34% 0.196 295.1)
XYZxyz(28.3955, 18.8328, 75.5228)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DE4 #B7E45D
analogous
#5D73E4 #8A5DE4 #CE5DE4
triadic
#8A5DE4 #E48A5D #5DE48A
tetradic
#8A5DE4 #E45D73 #B7E45D #5DE4CE
square
#8A5DE4 #E45D73 #B7E45D #5DE4CE
split-complementary
#8A5DE4 #E4CE5D #73E45D
monochromatic
#4C1CAA #6429DB #8A5DE4 #B091ED #D6C6F5

Accessibility & contrast

On white

4.41
#8A5DE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#8A5DE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DE4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DE4#FFFFFF#000000##000000
##8A5DE41.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#1B76E1
Tritanopia (blue-blind)
#737B98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5de4;
/* rgb */ color: rgb(138, 93, 228);
/* oklch */ color: oklch(59.3% 0.196 295.1);
Tailwind
colors: {
  custom: {
    50: '#b28ded',
    500: '#8a5de4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5de4;
$custom-light: #b28ded;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5de4",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 228
  },
  "hsl": {
    "h": 260,
    "s": 71.429,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59343,
    "c": 0.19614,
    "h": 295.1
  },
  "luminance": 0.18833
}

Semantic roles & 50–950 ramp

primary
#8A5DE4
secondary
#D6E7B6
accent
#D31293
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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