#9D5DE3#9D5DE3

#9D5DE3 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 61.2% C 0.198 H 303.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9D5DE3
RGBrgb(157, 93, 227)
HSLhsl(269, 71%, 63%)
HSVhsv(269, 59%, 89%)
CMYKcmyk(30.8%, 59%, 0%, 11%)
CIE-LABlab(52.45, 51.65, -58.58)
CIE-LCHlch(52.45, 78.10, 311.40°)
OKLaboklab(61.21% 0.1078 -0.1658)
OKLCHoklch(61.21% 0.198 303)
XYZxyz(31.6809, 20.5429, 74.9543)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DE3 #A3E35D
analogous
#5D60E3 #9D5DE3 #E05DE3
triadic
#9D5DE3 #E39D5D #5DE39D
tetradic
#9D5DE3 #E35D60 #A3E35D #5DE3E0
square
#9D5DE3 #E35D60 #A3E35D #5DE3E0
split-complementary
#9D5DE3 #E3E05D #60E35D
monochromatic
#601DA8 #7D29DA #9D5DE3 #BD91EC #DCC5F5

Accessibility & contrast

On white

4.11
#9D5DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9D5DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DE3
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DE3#FFFFFF#000000##000000
##9D5DE31.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#187CE7
Deuteranopia (green-blind)
#3A7DE0
Tritanopia (blue-blind)
#907897
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5de3;
/* rgb */ color: rgb(157, 93, 227);
/* oklch */ color: oklch(61.2% 0.198 303.0);
Tailwind
colors: {
  custom: {
    50: '#be8eec',
    500: '#9d5de3',
    950: '#000000',
  },
}
SCSS
$custom: #9d5de3;
$custom-light: #be8eec;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5de3",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 227
  },
  "hsl": {
    "h": 268.657,
    "s": 70.526,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6121,
    "c": 0.19774,
    "h": 303
  },
  "luminance": 0.20543
}

Semantic roles & 50–950 ramp

primary
#9D5DE3
secondary
#CFE6B6
accent
#D31377
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D5DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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