#8A5CD1#8A5CD1

#8A5CD1 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.9% C 0.174 H 299.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A5CD1
RGBrgb(138, 92, 209)
HSLhsl(264, 56%, 59%)
HSVhsv(264, 56%, 82%)
CMYKcmyk(34%, 56%, 0%, 18%)
CIE-LABlab(49.08, 43.27, -53.88)
CIE-LCHlch(49.08, 69.11, 308.77°)
OKLaboklab(57.93% 0.0846 -0.1526)
OKLCHoklch(57.93% 0.174 299)
XYZxyz(25.8142, 17.6608, 62.3581)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD1 #A3D15C
analogous
#5C69D1 #8A5CD1 #C55CD1
triadic
#8A5CD1 #D18A5C #5CD18A
tetradic
#8A5CD1 #D15C69 #A3D15C #5CD1C5
square
#8A5CD1 #D15C69 #A3D15C #5CD1C5
split-complementary
#8A5CD1 #D1C55C #69D15C
monochromatic
#4F278B #6A35BB #8A5CD1 #AC8CDE #CFBBEC

Accessibility & contrast

On white

4.63
#8A5CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8A5CD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CD1
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD1#FFFFFF#000000##FFFFFF
##8A5CD11.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2775D5
Deuteranopia (green-blind)
#3874CE
Tritanopia (blue-blind)
#7B748E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5cd1;
/* rgb */ color: rgb(138, 92, 209);
/* oklch */ color: oklch(57.9% 0.174 299.0);
Tailwind
colors: {
  custom: {
    50: '#b08ce0',
    500: '#8a5cd1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd1;
$custom-light: #b08ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd1",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 209
  },
  "hsl": {
    "h": 263.59,
    "s": 55.981,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57926,
    "c": 0.17444,
    "h": 299
  },
  "luminance": 0.17661
}

Semantic roles & 50–950 ramp

primary
#8A5CD1
secondary
#C9DBAD
accent
#DF49A4
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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