#9D5DEB#9D5DEB

#9D5DEB is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.7% C 0.207 H 301.3°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9D5DEB
RGBrgb(157, 93, 235)
HSLhsl(267, 78%, 64%)
HSVhsv(267, 60%, 92%)
CMYKcmyk(33.2%, 60.4%, 0%, 7.8%)
CIE-LABlab(52.94, 53.58, -62.28)
CIE-LCHlch(52.94, 82.15, 310.70°)
OKLaboklab(61.73% 0.1075 -0.1767)
OKLCHoklch(61.73% 0.207 301.3)
XYZxyz(32.8108, 20.9948, 80.9050)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DEB #ABEB5D
analogous
#5D64EB #9D5DEB #E45DEB
triadic
#9D5DEB #EB9D5D #5DEB9D
tetradic
#9D5DEB #EB5D64 #ABEB5D #5DEBE4
square
#9D5DEB #EB5D64 #ABEB5D #5DEBE4
split-complementary
#9D5DEB #EBE45D #64EB5D
monochromatic
#5F17B7 #7C27E4 #9D5DEB #BE93F2 #DFCAF8

Accessibility & contrast

On white

4.04
#9D5DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#9D5DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DEB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DEB#FFFFFF#000000##000000
##9D5DEB1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#2F7EE8
Tritanopia (blue-blind)
#8D7B9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5deb;
/* rgb */ color: rgb(157, 93, 235);
/* oklch */ color: oklch(61.7% 0.207 301.3);
Tailwind
colors: {
  custom: {
    50: '#bf8ef2',
    500: '#9d5deb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5deb;
$custom-light: #bf8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5deb",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 267.042,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61733,
    "c": 0.20681,
    "h": 301.3
  },
  "luminance": 0.20995
}

Semantic roles & 50–950 ramp

primary
#9D5DEB
secondary
#D4EBB9
accent
#DA0B7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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