#8A5EE6#8A5EE6

#8A5EE6 is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.6% C 0.197 H 294.6°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A5EE6
RGBrgb(138, 94, 230)
HSLhsl(259, 73%, 64%)
HSVhsv(259, 59%, 90%)
CMYKcmyk(40%, 59.1%, 0%, 9.8%)
CIE-LABlab(50.83, 47.63, -62.98)
CIE-LCHlch(50.83, 78.97, 307.10°)
OKLaboklab(59.63% 0.082 -0.1793)
OKLCHoklch(59.63% 0.197 294.6)
XYZxyz(28.7631, 19.1212, 77.0229)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EE6 #BAE65E
analogous
#5E76E6 #8A5EE6 #CE5EE6
triadic
#8A5EE6 #E68A5E #5EE68A
tetradic
#8A5EE6 #E65E76 #BAE65E #5EE6CE
square
#8A5EE6 #E65E76 #BAE65E #5EE6CE
split-complementary
#8A5EE6 #E6CE5E #76E65E
monochromatic
#4B1BAF #6429DE #8A5EE6 #B093EE #D7C8F6

Accessibility & contrast

On white

4.35
#8A5EE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8A5EE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EE6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EE6#FFFFFF#000000##000000
##8A5EE61.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEA
Deuteranopia (green-blind)
#1877E3
Tritanopia (blue-blind)
#727C99
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5ee6;
/* rgb */ color: rgb(138, 94, 230);
/* oklch */ color: oklch(59.6% 0.197 294.6);
Tailwind
colors: {
  custom: {
    50: '#b28def',
    500: '#8a5ee6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ee6;
$custom-light: #b28def;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ee6",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 230
  },
  "hsl": {
    "h": 259.412,
    "s": 73.118,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59631,
    "c": 0.19718,
    "h": 294.6
  },
  "luminance": 0.19122
}

Semantic roles & 50–950 ramp

primary
#8A5EE6
secondary
#D8E8B8
accent
#D51096
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EE6

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

Preview Lab → · Contrast checker → · Palette generator →

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