#9D5DDD#9D5DDD

#9D5DDD is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.8% C 0.191 H 304.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9D5DDD
RGBrgb(157, 93, 221)
HSLhsl(270, 65%, 62%)
HSVhsv(270, 58%, 87%)
CMYKcmyk(29%, 57.9%, 0%, 13.3%)
CIE-LABlab(52.08, 50.22, -55.78)
CIE-LCHlch(52.08, 75.06, 312.00°)
OKLaboklab(60.83% 0.1078 -0.1576)
OKLCHoklch(60.83% 0.191 304.4)
XYZxyz(30.8672, 20.2174, 70.6688)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DDD #9DDD5D
analogous
#5D5DDD #9D5DDD #DD5DDD
triadic
#9D5DDD #DD9D5D #5DDD9D
tetradic
#9D5DDD #DD5D5D #9DDD5D #5DDDDD
square
#9D5DDD #DD5D5D #9DDD5D #5DDDDD
split-complementary
#9D5DDD #DDDD5D #5DDD5D
monochromatic
#60219E #7E2CD1 #9D5DDD #BC90E8 #DAC2F2

Accessibility & contrast

On white

4.16
#9D5DDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9D5DDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DDD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DDD#FFFFFF#000000##000000
##9D5DDD1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#257BE1
Deuteranopia (green-blind)
#417CDA
Tritanopia (blue-blind)
#927694
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d5ddd;
/* rgb */ color: rgb(157, 93, 221);
/* oklch */ color: oklch(60.8% 0.191 304.4);
Tailwind
colors: {
  custom: {
    50: '#be8de8',
    500: '#9d5ddd',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ddd;
$custom-light: #be8de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ddd",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 221
  },
  "hsl": {
    "h": 270,
    "s": 65.306,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60828,
    "c": 0.19092,
    "h": 304.4
  },
  "luminance": 0.20217
}

Semantic roles & 50–950 ramp

primary
#9D5DDD
secondary
#CBE3B3
accent
#CD1873
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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