#8D5ACC#8D5ACC

#8D5ACC is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.172 H 301.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8D5ACC
RGBrgb(141, 90, 204)
HSLhsl(267, 53%, 58%)
HSVhsv(267, 56%, 80%)
CMYKcmyk(30.9%, 55.9%, 0%, 20%)
CIE-LABlab(48.68, 43.85, -51.64)
CIE-LCHlch(48.68, 67.75, 310.33°)
OKLaboklab(57.61% 0.0909 -0.1459)
OKLCHoklch(57.61% 0.172 301.9)
XYZxyz(25.5372, 17.3346, 59.1156)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5ACC #99CC5A
analogous
#5A60CC #8D5ACC #C65ACC
triadic
#8D5ACC #CC8D5A #5ACC8D
tetradic
#8D5ACC #CC5A60 #99CC5A #5ACCC6
square
#8D5ACC #CC5A60 #99CC5A #5ACCC6
split-complementary
#8D5ACC #CCC65A #60CC5A
monochromatic
#512983 #6E37B2 #8D5ACC #AD89DA #CEB7E9

Accessibility & contrast

On white

4.70
#8D5ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8D5ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5ACC
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5ACC#FFFFFF#000000##FFFFFF
##8D5ACC1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D0
Deuteranopia (green-blind)
#3E73C9
Tritanopia (blue-blind)
#81708A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8d5acc;
/* rgb */ color: rgb(141, 90, 204);
/* oklch */ color: oklch(57.6% 0.172 301.9);
Tailwind
colors: {
  custom: {
    50: '#b28adc',
    500: '#8d5acc',
    950: '#000000',
  },
}
SCSS
$custom: #8d5acc;
$custom-light: #b28adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5acc",
  "rgb": {
    "r": 141,
    "g": 90,
    "b": 204
  },
  "hsl": {
    "h": 266.842,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57606,
    "c": 0.17189,
    "h": 301.9
  },
  "luminance": 0.17335
}

Semantic roles & 50–950 ramp

primary
#8D5ACC
secondary
#C3D8AA
accent
#DC4C9C
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8D5ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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