#9D5DE4#9D5DE4

#9D5DE4 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.3% C 0.199 H 302.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9D5DE4
RGBrgb(157, 93, 228)
HSLhsl(268, 71%, 63%)
HSVhsv(268, 59%, 89%)
CMYKcmyk(31.1%, 59.2%, 0%, 10.6%)
CIE-LABlab(52.51, 51.89, -59.05)
CIE-LCHlch(52.51, 78.61, 311.31°)
OKLaboklab(61.28% 0.1077 -0.1672)
OKLCHoklch(61.28% 0.199 302.8)
XYZxyz(31.8194, 20.5982, 75.6833)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DE4 #A4E45D
analogous
#5D60E4 #9D5DE4 #E05DE4
triadic
#9D5DE4 #E49D5D #5DE49D
tetradic
#9D5DE4 #E45D60 #A4E45D #5DE4E0
square
#9D5DE4 #E45D60 #A4E45D #5DE4E0
split-complementary
#9D5DE4 #E4E05D #60E45D
monochromatic
#601CAA #7D29DB #9D5DE4 #BD91ED #DCC6F5

Accessibility & contrast

On white

4.10
#9D5DE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9D5DE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DE4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DE4#FFFFFF#000000##000000
##9D5DE41.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#157CE8
Deuteranopia (green-blind)
#397DE1
Tritanopia (blue-blind)
#8F7998
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5de4;
/* rgb */ color: rgb(157, 93, 228);
/* oklch */ color: oklch(61.3% 0.199 302.8);
Tailwind
colors: {
  custom: {
    50: '#be8eed',
    500: '#9d5de4',
    950: '#000000',
  },
}
SCSS
$custom: #9d5de4;
$custom-light: #be8eed;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5de4",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 228
  },
  "hsl": {
    "h": 268.444,
    "s": 71.429,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61275,
    "c": 0.19888,
    "h": 302.8
  },
  "luminance": 0.20598
}

Semantic roles & 50–950 ramp

primary
#9D5DE4
secondary
#D0E7B6
accent
#D31278
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D5DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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