#8A5DE7#8A5DE7

#8A5DE7 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.5% C 0.200 H 294.6°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A5DE7
RGBrgb(138, 93, 231)
HSLhsl(260, 74%, 64%)
HSVhsv(260, 60%, 91%)
CMYKcmyk(40.3%, 59.7%, 0%, 9.4%)
CIE-LABlab(50.69, 48.44, -63.77)
CIE-LCHlch(50.69, 80.08, 307.22°)
OKLaboklab(59.55% 0.0831 -0.1816)
OKLCHoklch(59.55% 0.2 294.6)
XYZxyz(28.8156, 19.0008, 77.7351)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DE7 #BAE75D
analogous
#5D75E7 #8A5DE7 #CF5DE7
triadic
#8A5DE7 #E78A5D #5DE78A
tetradic
#8A5DE7 #E75D75 #BAE75D #5DE7CF
square
#8A5DE7 #E75D75 #BAE75D #5DE7CF
split-complementary
#8A5DE7 #E7CF5D #75E75D
monochromatic
#4B1AB0 #6428DF #8A5DE7 #B092EF #D7C8F7

Accessibility & contrast

On white

4.37
#8A5DE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#8A5DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DE7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DE7#FFFFFF#000000##000000
##8A5DE71.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#1176E4
Tritanopia (blue-blind)
#727C99
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5de7;
/* rgb */ color: rgb(138, 93, 231);
/* oklch */ color: oklch(59.5% 0.200 294.6);
Tailwind
colors: {
  custom: {
    50: '#b28def',
    500: '#8a5de7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5de7;
$custom-light: #b28def;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5de7",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 231
  },
  "hsl": {
    "h": 259.565,
    "s": 74.194,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59549,
    "c": 0.19975,
    "h": 294.6
  },
  "luminance": 0.19001
}

Semantic roles & 50–950 ramp

primary
#8A5DE7
secondary
#D8E8B7
accent
#D60F95
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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