#9E5DCD#9E5DCD

#9E5DCD is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.0% C 0.173 H 308.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9E5DCD
RGBrgb(158, 93, 205)
HSLhsl(275, 53%, 58%)
HSVhsv(275, 55%, 80%)
CMYKcmyk(22.9%, 54.6%, 0%, 19.6%)
CIE-LABlab(51.27, 46.76, -47.96)
CIE-LCHlch(51.27, 66.98, 314.27°)
OKLaboklab(59.96% 0.1086 -0.1346)
OKLCHoklch(59.96% 0.173 308.9)
XYZxyz(29.0322, 19.5060, 59.9814)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5DCD #8CCD5D
analogous
#665DCD #9E5DCD #CD5DC4
triadic
#9E5DCD #CD9E5D #5DCD9E
tetradic
#9E5DCD #CD665D #8CCD5D #5DC4CD
square
#9E5DCD #CD665D #8CCD5D #5DC4CD
split-complementary
#9E5DCD #C4CD5D #5DCD66
monochromatic
#5F2986 #8038B5 #9E5DCD #BA8CDB #D6BBEA

Accessibility & contrast

On white

4.28
#9E5DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#9E5DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5DCD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5DCD#FFFFFF#000000##000000
##9E5DCD1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A77D1
Deuteranopia (green-blind)
#507BCA
Tritanopia (blue-blind)
#98718C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9e5dcd;
/* rgb */ color: rgb(158, 93, 205);
/* oklch */ color: oklch(60.0% 0.173 308.9);
Tailwind
colors: {
  custom: {
    50: '#bd8ddd',
    500: '#9e5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #9e5dcd;
$custom-light: #bd8ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5dcd",
  "rgb": {
    "r": 158,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 274.821,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59964,
    "c": 0.17301,
    "h": 308.9
  },
  "luminance": 0.19506
}

Semantic roles & 50–950 ramp

primary
#9E5DCD
secondary
#BFD9AD
accent
#DC4C88
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9E5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

#9E5DCD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva