#9D5DE5#9D5DE5

#9D5DE5 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.3% C 0.200 H 302.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9D5DE5
RGBrgb(157, 93, 229)
HSLhsl(268, 72%, 63%)
HSVhsv(268, 59%, 90%)
CMYKcmyk(31.4%, 59.4%, 0%, 10.2%)
CIE-LABlab(52.57, 52.13, -59.51)
CIE-LCHlch(52.57, 79.12, 311.22°)
OKLaboklab(61.34% 0.1077 -0.1685)
OKLCHoklch(61.34% 0.2 302.6)
XYZxyz(31.9586, 20.6539, 76.4165)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DE5 #A5E55D
analogous
#5D61E5 #9D5DE5 #E15DE5
triadic
#9D5DE5 #E59D5D #5DE59D
tetradic
#9D5DE5 #E55D61 #A5E55D #5DE5E1
square
#9D5DE5 #E55D61 #A5E55D #5DE5E1
split-complementary
#9D5DE5 #E5E15D #61E55D
monochromatic
#601CAC #7D28DD #9D5DE5 #BD92ED #DDC6F6

Accessibility & contrast

On white

4.09
#9D5DE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#9D5DE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DE5
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DE5#FFFFFF#000000##000000
##9D5DE51.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#127CE9
Deuteranopia (green-blind)
#387DE2
Tritanopia (blue-blind)
#8F7998
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5de5;
/* rgb */ color: rgb(157, 93, 229);
/* oklch */ color: oklch(61.3% 0.200 302.6);
Tailwind
colors: {
  custom: {
    50: '#be8eee',
    500: '#9d5de5',
    950: '#000000',
  },
}
SCSS
$custom: #9d5de5;
$custom-light: #be8eee;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5de5",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 229
  },
  "hsl": {
    "h": 268.235,
    "s": 72.34,
    "l": 63.137
  },
  "oklch": {
    "l": 0.6134,
    "c": 0.20001,
    "h": 302.6
  },
  "luminance": 0.20654
}

Semantic roles & 50–950 ramp

primary
#9D5DE5
secondary
#D0E7B7
accent
#D41178
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D5DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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