#8A5ED1#8A5ED1

#8A5ED1 is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.2% C 0.171 H 298.6°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A5ED1
RGBrgb(138, 94, 209)
HSLhsl(263, 56%, 59%)
HSVhsv(263, 55%, 82%)
CMYKcmyk(34%, 55%, 0%, 18%)
CIE-LABlab(49.51, 42.16, -53.19)
CIE-LCHlch(49.51, 67.87, 308.40°)
OKLaboklab(58.24% 0.0821 -0.1505)
OKLCHoklch(58.24% 0.171 298.6)
XYZxyz(25.9897, 18.0119, 62.4166)
Luminance0.1801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ED1 #A5D15E
analogous
#5E6BD1 #8A5ED1 #C45ED1
triadic
#8A5ED1 #D18A5E #5ED18A
tetradic
#8A5ED1 #D15E6B #A5D15E #5ED1C4
square
#8A5ED1 #D15E6B #A5D15E #5ED1C4
split-complementary
#8A5ED1 #D1C45E #6BD15E
monochromatic
#4F288C #6936BC #8A5ED1 #AD8EDF #CFBDEC

Accessibility & contrast

On white

4.56
#8A5ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#8A5ED1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5ED1
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ED1#FFFFFF#000000##000000
##8A5ED11.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D76D5
Deuteranopia (green-blind)
#3B75CE
Tritanopia (blue-blind)
#7B758E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5ed1;
/* rgb */ color: rgb(138, 94, 209);
/* oklch */ color: oklch(58.2% 0.171 298.6);
Tailwind
colors: {
  custom: {
    50: '#b08de0',
    500: '#8a5ed1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ed1;
$custom-light: #b08de0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ed1",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 209
  },
  "hsl": {
    "h": 262.957,
    "s": 55.556,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58241,
    "c": 0.17147,
    "h": 298.6
  },
  "luminance": 0.18012
}

Semantic roles & 50–950 ramp

primary
#8A5ED1
secondary
#CBDCAF
accent
#DF49A6
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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