#9D5DEC#9D5DEC

#9D5DEC is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.8% C 0.208 H 301.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9D5DEC
RGBrgb(157, 93, 236)
HSLhsl(267, 79%, 65%)
HSVhsv(267, 61%, 93%)
CMYKcmyk(33.5%, 60.6%, 0%, 7.5%)
CIE-LABlab(53.01, 53.82, -62.74)
CIE-LCHlch(53.01, 82.66, 310.62°)
OKLaboklab(61.8% 0.1075 -0.178)
OKLCHoklch(61.8% 0.208 301.1)
XYZxyz(32.9557, 21.0528, 81.6680)
Luminance0.2105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DEC #ACEC5D
analogous
#5D65EC #9D5DEC #E55DEC
triadic
#9D5DEC #EC9D5D #5DEC9D
tetradic
#9D5DEC #EC5D65 #ACEC5D #5DECE5
square
#9D5DEC #EC5D65 #ACEC5D #5DECE5
split-complementary
#9D5DEC #ECE55D #65EC5D
monochromatic
#5F16B9 #7C26E6 #9D5DEC #BE94F2 #DFCBF9

Accessibility & contrast

On white

4.03
#9D5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#9D5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DEC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DEC#FFFFFF#000000##000000
##9D5DEC1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#2E7EE9
Tritanopia (blue-blind)
#8D7B9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9d5dec;
/* rgb */ color: rgb(157, 93, 236);
/* oklch */ color: oklch(61.8% 0.208 301.1);
Tailwind
colors: {
  custom: {
    50: '#bf8ef3',
    500: '#9d5dec',
    950: '#000000',
  },
}
SCSS
$custom: #9d5dec;
$custom-light: #bf8ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5dec",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 266.853,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61799,
    "c": 0.20794,
    "h": 301.1
  },
  "luminance": 0.21053
}

Semantic roles & 50–950 ramp

primary
#9D5DEC
secondary
#D5EBBA
accent
#DB0A7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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