#8A5EDD#8A5EDD

#8A5EDD is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.0% C 0.186 H 296.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A5EDD
RGBrgb(138, 94, 221)
HSLhsl(261, 65%, 62%)
HSVhsv(261, 57%, 87%)
CMYKcmyk(37.6%, 57.5%, 0%, 13.3%)
CIE-LABlab(50.25, 45.27, -58.83)
CIE-LCHlch(50.25, 74.23, 307.58°)
OKLaboklab(59.02% 0.0822 -0.1671)
OKLCHoklch(59.02% 0.186 296.2)
XYZxyz(27.5317, 18.6286, 70.5377)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EDD #B1DD5E
analogous
#5E72DD #8A5EDD #C95EDD
triadic
#8A5EDD #DD8A5E #5EDD8A
tetradic
#8A5EDD #DD5E72 #B1DD5E #5EDDC9
square
#8A5EDD #DD5E72 #B1DD5E #5EDDC9
split-complementary
#8A5EDD #DDC95E #72DD5E
monochromatic
#4D229F #662CD2 #8A5EDD #AF91E8 #D3C3F2

Accessibility & contrast

On white

4.44
#8A5EDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#8A5EDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EDD
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EDD#FFFFFF#000000##000000
##8A5EDD1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1778E1
Deuteranopia (green-blind)
#2C76DA
Tritanopia (blue-blind)
#767994
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5edd;
/* rgb */ color: rgb(138, 94, 221);
/* oklch */ color: oklch(59.0% 0.186 296.2);
Tailwind
colors: {
  custom: {
    50: '#b18de8',
    500: '#8a5edd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5edd;
$custom-light: #b18de8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5edd",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 221
  },
  "hsl": {
    "h": 260.787,
    "s": 65.128,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59022,
    "c": 0.18624,
    "h": 296.2
  },
  "luminance": 0.18629
}

Semantic roles & 50–950 ramp

primary
#8A5EDD
secondary
#D3E3B4
accent
#CD198E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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