#9F5DCD#9F5DCD

#9F5DCD is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.1% C 0.173 H 309.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9F5DCD
RGBrgb(159, 93, 205)
HSLhsl(275, 53%, 58%)
HSVhsv(275, 55%, 80%)
CMYKcmyk(22.4%, 54.6%, 0%, 19.6%)
CIE-LABlab(51.39, 47.02, -47.77)
CIE-LCHlch(51.39, 67.02, 314.54°)
OKLaboklab(60.08% 0.1099 -0.1341)
OKLCHoklch(60.08% 0.173 309.3)
XYZxyz(29.2297, 19.6079, 59.9907)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DCD #8BCD5D
analogous
#675DCD #9F5DCD #CD5DC3
triadic
#9F5DCD #CD9F5D #5DCD9F
tetradic
#9F5DCD #CD675D #8BCD5D #5DC3CD
square
#9F5DCD #CD675D #8BCD5D #5DC3CD
split-complementary
#9F5DCD #C3CD5D #5DCD67
monochromatic
#602986 #8238B5 #9F5DCD #BB8CDB #D6BBEA

Accessibility & contrast

On white

4.27
#9F5DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9F5DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DCD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DCD#FFFFFF#000000##000000
##9F5DCD1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A78D1
Deuteranopia (green-blind)
#517BCA
Tritanopia (blue-blind)
#99718C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f5dcd;
/* rgb */ color: rgb(159, 93, 205);
/* oklch */ color: oklch(60.1% 0.173 309.3);
Tailwind
colors: {
  custom: {
    50: '#be8ddd',
    500: '#9f5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #9f5dcd;
$custom-light: #be8ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5dcd",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 275.357,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60076,
    "c": 0.17334,
    "h": 309.3
  },
  "luminance": 0.19607
}

Semantic roles & 50–950 ramp

primary
#9F5DCD
secondary
#BFD9AD
accent
#DC4C87
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9F5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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