#9D5DEE#9D5DEE

#9D5DEE is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.9% C 0.210 H 300.7°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9D5DEE
RGBrgb(157, 93, 238)
HSLhsl(266, 81%, 65%)
HSVhsv(266, 61%, 93%)
CMYKcmyk(34%, 60.9%, 0%, 6.7%)
CIE-LABlab(53.13, 54.31, -63.65)
CIE-LCHlch(53.13, 83.67, 310.47°)
OKLaboklab(61.93% 0.1074 -0.1807)
OKLCHoklch(61.93% 0.21 300.7)
XYZxyz(33.2479, 21.1696, 83.2069)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DEE #AEEE5D
analogous
#5D65EE #9D5DEE #E65DEE
triadic
#9D5DEE #EE9D5D #5DEE9D
tetradic
#9D5DEE #EE5D65 #AEEE5D #5DEEE6
square
#9D5DEE #EE5D65 #AEEE5D #5DEEE6
split-complementary
#9D5DEE #EEE65D #65EE5D
monochromatic
#5E14BD #7B26E8 #9D5DEE #BF94F4 #E0CCFA

Accessibility & contrast

On white

4.01
#9D5DEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#9D5DEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DEE
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DEE#FFFFFF#000000##000000
##9D5DEE1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF3
Deuteranopia (green-blind)
#2A7EEB
Tritanopia (blue-blind)
#8C7C9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9d5dee;
/* rgb */ color: rgb(157, 93, 238);
/* oklch */ color: oklch(61.9% 0.210 300.7);
Tailwind
colors: {
  custom: {
    50: '#bf8ef4',
    500: '#9d5dee',
    950: '#000000',
  },
}
SCSS
$custom: #9d5dee;
$custom-light: #bf8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5dee",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 238
  },
  "hsl": {
    "h": 266.483,
    "s": 81.006,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61932,
    "c": 0.21019,
    "h": 300.7
  },
  "luminance": 0.2117
}

Semantic roles & 50–950 ramp

primary
#9D5DEE
secondary
#D6ECBB
accent
#DD087F
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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