#8A5EE1#8A5EE1

#8A5EE1 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.3% C 0.191 H 295.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A5EE1
RGBrgb(138, 94, 225)
HSLhsl(260, 69%, 63%)
HSVhsv(260, 58%, 88%)
CMYKcmyk(38.7%, 58.2%, 0%, 11.8%)
CIE-LABlab(50.50, 46.32, -60.68)
CIE-LCHlch(50.50, 76.34, 307.35°)
OKLaboklab(59.29% 0.0822 -0.1726)
OKLCHoklch(59.29% 0.191 295.5)
XYZxyz(28.0710, 18.8444, 73.3779)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EE1 #B5E15E
analogous
#5E73E1 #8A5EE1 #CC5EE1
triadic
#8A5EE1 #E18A5E #5EE18A
tetradic
#8A5EE1 #E15E73 #B5E15E #5EE1CC
square
#8A5EE1 #E15E73 #B5E15E #5EE1CC
split-complementary
#8A5EE1 #E1CC5E #73E15E
monochromatic
#4C1FA6 #652AD7 #8A5EE1 #AF92EB #D5C5F4

Accessibility & contrast

On white

4.40
#8A5EE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#8A5EE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EE1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EE1#FFFFFF#000000##000000
##8A5EE11.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0779E5
Deuteranopia (green-blind)
#2476DE
Tritanopia (blue-blind)
#747A97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5ee1;
/* rgb */ color: rgb(138, 94, 225);
/* oklch */ color: oklch(59.3% 0.191 295.5);
Tailwind
colors: {
  custom: {
    50: '#b18deb',
    500: '#8a5ee1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ee1;
$custom-light: #b18deb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ee1",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 225
  },
  "hsl": {
    "h": 260.153,
    "s": 68.586,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59291,
    "c": 0.19112,
    "h": 295.5
  },
  "luminance": 0.18845
}

Semantic roles & 50–950 ramp

primary
#8A5EE1
secondary
#D5E5B6
accent
#D11592
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EE1

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

Preview Lab → · Contrast checker → · Palette generator →

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