#8A5CD4#8A5CD4

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

Color values

HEX#8A5CD4
RGBrgb(138, 92, 212)
HSLhsl(263, 58%, 60%)
HSVhsv(263, 57%, 83%)
CMYKcmyk(34.9%, 56.6%, 0%, 16.9%)
CIE-LABlab(49.27, 44.04, -55.30)
CIE-LCHlch(49.27, 70.69, 308.54°)
OKLaboklab(58.12% 0.0846 -0.1567)
OKLCHoklch(58.12% 0.178 298.4)
XYZxyz(26.1891, 17.8107, 64.3326)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD4 #A6D45C
analogous
#5C6AD4 #8A5CD4 #C65CD4
triadic
#8A5CD4 #D48A5C #5CD48A
tetradic
#8A5CD4 #D45C6A #A6D45C #5CD4C6
square
#8A5CD4 #D45C6A #A6D45C #5CD4C6
split-complementary
#8A5CD4 #D4C65C #6AD45C
monochromatic
#4E2690 #6933C0 #8A5CD4 #AD8CE1 #D0BDEE

Accessibility & contrast

On white

4.60
#8A5CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8A5CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CD4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD4#FFFFFF#000000##FFFFFF
##8A5CD41.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2375D8
Deuteranopia (green-blind)
#3574D1
Tritanopia (blue-blind)
#7A758F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5cd4;
/* rgb */ color: rgb(138, 92, 212);
/* oklch */ color: oklch(58.1% 0.178 298.4);
Tailwind
colors: {
  custom: {
    50: '#b08ce2',
    500: '#8a5cd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd4;
$custom-light: #b08ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd4",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 263,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.5812,
    "c": 0.17812,
    "h": 298.4
  },
  "luminance": 0.17811
}

Semantic roles & 50–950 ramp

primary
#8A5CD4
secondary
#CBDDAF
accent
#E146A6
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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