#8A5CD8#8A5CD8

#8A5CD8 is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.4% C 0.183 H 297.5°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A5CD8
RGBrgb(138, 92, 216)
HSLhsl(262, 61%, 60%)
HSVhsv(262, 57%, 85%)
CMYKcmyk(36.1%, 57.4%, 0%, 15.3%)
CIE-LABlab(49.51, 45.07, -57.18)
CIE-LCHlch(49.51, 72.80, 308.25°)
OKLaboklab(58.38% 0.0846 -0.1622)
OKLCHoklch(58.38% 0.183 297.5)
XYZxyz(26.6999, 18.0151, 67.0230)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD8 #AAD85C
analogous
#5C6CD8 #8A5CD8 #C85CD8
triadic
#8A5CD8 #D88A5C #5CD88A
tetradic
#8A5CD8 #D85C6C #AAD85C #5CD8C8
square
#8A5CD8 #D85C6C #AAD85C #5CD8C8
split-complementary
#8A5CD8 #D8C85C #6CD85C
monochromatic
#4E2496 #6830C7 #8A5CD8 #AD8DE4 #D1BFF0

Accessibility & contrast

On white

4.56
#8A5CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#8A5CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CD8
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD8#FFFFFF#000000##000000
##8A5CD81.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B76DC
Deuteranopia (green-blind)
#2F74D5
Tritanopia (blue-blind)
#787691
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5cd8;
/* rgb */ color: rgb(138, 92, 216);
/* oklch */ color: oklch(58.4% 0.183 297.5);
Tailwind
colors: {
  custom: {
    50: '#b18ce5',
    500: '#8a5cd8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd8;
$custom-light: #b18ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd8",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 216
  },
  "hsl": {
    "h": 262.258,
    "s": 61.386,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58382,
    "c": 0.183,
    "h": 297.5
  },
  "luminance": 0.18015
}

Semantic roles & 50–950 ramp

primary
#8A5CD8
secondary
#CEE0B0
accent
#C91C89
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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