#8A5EE4#8A5EE4

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

Color values

HEX#8A5EE4
RGBrgb(138, 94, 228)
HSLhsl(260, 71%, 63%)
HSVhsv(260, 59%, 89%)
CMYKcmyk(39.5%, 58.8%, 0%, 10.6%)
CIE-LABlab(50.70, 47.11, -62.06)
CIE-LCHlch(50.70, 77.92, 307.20°)
OKLaboklab(59.49% 0.0821 -0.1766)
OKLCHoklch(59.49% 0.195 294.9)
XYZxyz(28.4838, 19.0095, 75.5522)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EE4 #B8E45E
analogous
#5E75E4 #8A5EE4 #CD5EE4
triadic
#8A5EE4 #E48A5E #5EE48A
tetradic
#8A5EE4 #E45E75 #B8E45E #5EE4CD
square
#8A5EE4 #E45E75 #B8E45E #5EE4CD
split-complementary
#8A5EE4 #E4CD5E #75E45E
monochromatic
#4B1DAB #642ADB #8A5EE4 #B092ED #D6C7F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5EE4#FFFFFF#000000##000000
##8A5EE41.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)
#007AE8
Deuteranopia (green-blind)
#1E77E1
Tritanopia (blue-blind)
#737B98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5ee4;
/* rgb */ color: rgb(138, 94, 228);
/* oklch */ color: oklch(59.5% 0.195 294.9);
Tailwind
colors: {
  custom: {
    50: '#b18ded',
    500: '#8a5ee4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ee4;
$custom-light: #b18ded;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ee4",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 228
  },
  "hsl": {
    "h": 259.701,
    "s": 71.277,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59494,
    "c": 0.19476,
    "h": 294.9
  },
  "luminance": 0.1901
}

Semantic roles & 50–950 ramp

primary
#8A5EE4
secondary
#D7E7B7
accent
#D31294
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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