#8A5AE0#8A5AE0

#8A5AE0 is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.6% C 0.195 H 296.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A5AE0
RGBrgb(138, 90, 224)
HSLhsl(261, 68%, 62%)
HSVhsv(261, 60%, 88%)
CMYKcmyk(38.4%, 59.8%, 0%, 12.2%)
CIE-LABlab(49.61, 48.24, -61.56)
CIE-LCHlch(49.61, 78.20, 308.08°)
OKLaboklab(58.62% 0.0868 -0.1751)
OKLCHoklch(58.62% 0.195 296.4)
XYZxyz(27.5885, 18.0969, 72.5461)
Luminance0.1810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AE0 #B0E05A
analogous
#5A6DE0 #8A5AE0 #CD5AE0
triadic
#8A5AE0 #E08A5A #5AE08A
tetradic
#8A5AE0 #E05A6D #B0E05A #5AE0CD
square
#8A5AE0 #E05A6D #B0E05A #5AE0CD
split-complementary
#8A5AE0 #E0CD5A #6DE05A
monochromatic
#4D1EA1 #6628D5 #8A5AE0 #AF8EEA #D3C1F3

Accessibility & contrast

On white

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

On black

4.62
#8A5AE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AE0
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AE0#FFFFFF#000000##000000
##8A5AE01.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E4
Deuteranopia (green-blind)
#1C74DD
Tritanopia (blue-blind)
#757795
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5ae0;
/* rgb */ color: rgb(138, 90, 224);
/* oklch */ color: oklch(58.6% 0.195 296.4);
Tailwind
colors: {
  custom: {
    50: '#b18bea',
    500: '#8a5ae0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ae0;
$custom-light: #b18bea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ae0",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 224
  },
  "hsl": {
    "h": 261.493,
    "s": 68.367,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58618,
    "c": 0.19546,
    "h": 296.4
  },
  "luminance": 0.18097
}

Semantic roles & 50–950 ramp

primary
#8A5AE0
secondary
#D2E4B2
accent
#D0158D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5AE0

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

Preview Lab → · Contrast checker → · Palette generator →

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