#8A5CD3#8A5CD3

#8A5CD3 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.1% C 0.177 H 298.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A5CD3
RGBrgb(138, 92, 211)
HSLhsl(263, 57%, 59%)
HSVhsv(263, 56%, 83%)
CMYKcmyk(34.6%, 56.4%, 0%, 17.3%)
CIE-LABlab(49.20, 43.79, -54.82)
CIE-LCHlch(49.20, 70.16, 308.61°)
OKLaboklab(58.06% 0.0846 -0.1553)
OKLCHoklch(58.06% 0.177 298.6)
XYZxyz(26.0634, 17.7604, 63.6703)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD3 #A5D35C
analogous
#5C6AD3 #8A5CD3 #C55CD3
triadic
#8A5CD3 #D38A5C #5CD38A
tetradic
#8A5CD3 #D35C6A #A5D35C #5CD3C5
square
#8A5CD3 #D35C6A #A5D35C #5CD3C5
split-complementary
#8A5CD3 #D3C55C #6AD35C
monochromatic
#4F268E #6933BE #8A5CD3 #AD8CE0 #CFBCED

Accessibility & contrast

On white

4.61
#8A5CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8A5CD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CD3
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD3#FFFFFF#000000##FFFFFF
##8A5CD31.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2475D7
Deuteranopia (green-blind)
#3674D0
Tritanopia (blue-blind)
#7A748F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5cd3;
/* rgb */ color: rgb(138, 92, 211);
/* oklch */ color: oklch(58.1% 0.177 298.6);
Tailwind
colors: {
  custom: {
    50: '#b08ce1',
    500: '#8a5cd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd3;
$custom-light: #b08ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd3",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 211
  },
  "hsl": {
    "h": 263.193,
    "s": 57.488,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58055,
    "c": 0.17689,
    "h": 298.6
  },
  "luminance": 0.17761
}

Semantic roles & 50–950 ramp

primary
#8A5CD3
secondary
#CBDDAE
accent
#E147A5
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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