#8A5DCD#8A5DCD

#8A5DCD is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.8% C 0.168 H 299.7°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8A5DCD
RGBrgb(138, 93, 205)
HSLhsl(264, 53%, 58%)
HSVhsv(264, 55%, 80%)
CMYKcmyk(32.7%, 54.6%, 0%, 19.6%)
CIE-LABlab(49.06, 41.70, -51.63)
CIE-LCHlch(49.06, 66.37, 308.92°)
OKLaboklab(57.83% 0.0832 -0.146)
OKLCHoklch(57.83% 0.168 299.7)
XYZxyz(25.4124, 17.6396, 59.8117)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DCD #A0CD5D
analogous
#5D68CD #8A5DCD #C25DCD
triadic
#8A5DCD #CD8A5D #5DCD8A
tetradic
#8A5DCD #CD5D68 #A0CD5D #5DCDC2
square
#8A5DCD #CD5D68 #A0CD5D #5DCDC2
split-complementary
#8A5DCD #CDC25D #68CD5D
monochromatic
#4F2986 #6A38B5 #8A5DCD #AC8CDB #CEBBEA

Accessibility & contrast

On white

4.64
#8A5DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A5DCD
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DCD#FFFFFF#000000##FFFFFF
##8A5DCD1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F74D1
Deuteranopia (green-blind)
#3E74CA
Tritanopia (blue-blind)
#7C738C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5dcd;
/* rgb */ color: rgb(138, 93, 205);
/* oklch */ color: oklch(57.8% 0.168 299.7);
Tailwind
colors: {
  custom: {
    50: '#b08cdd',
    500: '#8a5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dcd;
$custom-light: #b08cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dcd",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 264.107,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57829,
    "c": 0.16803,
    "h": 299.7
  },
  "luminance": 0.1764
}

Semantic roles & 50–950 ramp

primary
#8A5DCD
secondary
#C7D9AD
accent
#DC4CA2
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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