#8A5ED2#8A5ED2

#8A5ED2 is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.3% C 0.173 H 298.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A5ED2
RGBrgb(138, 94, 210)
HSLhsl(263, 56%, 60%)
HSVhsv(263, 55%, 82%)
CMYKcmyk(34.3%, 55.2%, 0%, 17.6%)
CIE-LABlab(49.57, 42.42, -53.67)
CIE-LCHlch(49.57, 68.40, 308.32°)
OKLaboklab(58.3% 0.0821 -0.1519)
OKLCHoklch(58.3% 0.173 298.4)
XYZxyz(26.1139, 18.0615, 63.0707)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ED2 #A6D25E
analogous
#5E6CD2 #8A5ED2 #C45ED2
triadic
#8A5ED2 #D28A5E #5ED28A
tetradic
#8A5ED2 #D25E6C #A6D25E #5ED2C4
square
#8A5ED2 #D25E6C #A6D25E #5ED2C4
split-complementary
#8A5ED2 #D2C45E #6CD25E
monochromatic
#4E288E #6935BE #8A5ED2 #AD8EDF #D0BEED

Accessibility & contrast

On white

4.55
#8A5ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#8A5ED2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5ED2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ED2#FFFFFF#000000##000000
##8A5ED21.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B76D6
Deuteranopia (green-blind)
#3A75CF
Tritanopia (blue-blind)
#7A758F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5ed2;
/* rgb */ color: rgb(138, 94, 210);
/* oklch */ color: oklch(58.3% 0.173 298.4);
Tailwind
colors: {
  custom: {
    50: '#b08de0',
    500: '#8a5ed2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ed2;
$custom-light: #b08de0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ed2",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 210
  },
  "hsl": {
    "h": 262.759,
    "s": 56.311,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58305,
    "c": 0.17271,
    "h": 298.4
  },
  "luminance": 0.18062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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