#8A5CD5#8A5CD5

#8A5CD5 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.2% C 0.179 H 298.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A5CD5
RGBrgb(138, 92, 213)
HSLhsl(263, 59%, 60%)
HSVhsv(263, 57%, 84%)
CMYKcmyk(35.2%, 56.8%, 0%, 16.5%)
CIE-LABlab(49.33, 44.30, -55.77)
CIE-LCHlch(49.33, 71.22, 308.46°)
OKLaboklab(58.18% 0.0846 -0.1581)
OKLCHoklch(58.18% 0.179 298.2)
XYZxyz(26.3156, 17.8613, 64.9990)
Luminance0.1786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD5 #A7D55C
analogous
#5C6BD5 #8A5CD5 #C65CD5
triadic
#8A5CD5 #D58A5C #5CD58A
tetradic
#8A5CD5 #D55C6B #A7D55C #5CD5C6
square
#8A5CD5 #D55C6B #A7D55C #5CD5C6
split-complementary
#8A5CD5 #D5C65C #6BD55C
monochromatic
#4E2591 #6932C2 #8A5CD5 #AD8DE2 #D0BDEE

Accessibility & contrast

On white

4.59
#8A5CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8A5CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CD5
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD5#FFFFFF#000000##FFFFFF
##8A5CD51.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2175D9
Deuteranopia (green-blind)
#3474D2
Tritanopia (blue-blind)
#797590
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5cd5;
/* rgb */ color: rgb(138, 92, 213);
/* oklch */ color: oklch(58.2% 0.179 298.2);
Tailwind
colors: {
  custom: {
    50: '#b08ce3',
    500: '#8a5cd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd5;
$custom-light: #b08ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd5",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 262.81,
    "s": 59.024,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58185,
    "c": 0.17933,
    "h": 298.2
  },
  "luminance": 0.17862
}

Semantic roles & 50–950 ramp

primary
#8A5CD5
secondary
#CCDEAF
accent
#E246A7
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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