#9D5DEA#9D5DEA

#9D5DEA is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.206 H 301.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9D5DEA
RGBrgb(157, 93, 234)
HSLhsl(267, 77%, 64%)
HSVhsv(267, 60%, 92%)
CMYKcmyk(32.9%, 60.3%, 0%, 8.2%)
CIE-LABlab(52.88, 53.34, -61.82)
CIE-LCHlch(52.88, 81.65, 310.79°)
OKLaboklab(61.67% 0.1076 -0.1753)
OKLCHoklch(61.67% 0.206 301.5)
XYZxyz(32.6668, 20.9372, 80.1462)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DEA #AAEA5D
analogous
#5D64EA #9D5DEA #E45DEA
triadic
#9D5DEA #EA9D5D #5DEA9D
tetradic
#9D5DEA #EA5D64 #AAEA5D #5DEAE4
square
#9D5DEA #EA5D64 #AAEA5D #5DEAE4
split-complementary
#9D5DEA #EAE45D #64EA5D
monochromatic
#5F17B5 #7C27E3 #9D5DEA #BE93F1 #DFC9F8

Accessibility & contrast

On white

4.05
#9D5DEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#9D5DEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DEA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DEA#FFFFFF#000000##000000
##9D5DEA1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DEE
Deuteranopia (green-blind)
#317EE7
Tritanopia (blue-blind)
#8D7B9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5dea;
/* rgb */ color: rgb(157, 93, 234);
/* oklch */ color: oklch(61.7% 0.206 301.5);
Tailwind
colors: {
  custom: {
    50: '#be8ef1',
    500: '#9d5dea',
    950: '#000000',
  },
}
SCSS
$custom: #9d5dea;
$custom-light: #be8ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5dea",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 234
  },
  "hsl": {
    "h": 267.234,
    "s": 77.049,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61667,
    "c": 0.20568,
    "h": 301.5
  },
  "luminance": 0.20937
}

Semantic roles & 50–950 ramp

primary
#9D5DEA
secondary
#D4EAB9
accent
#D90C7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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