#9F5DCA#9F5DCA

#9F5DCA is a mid, vivid violet. Relative luminance 0.195; OKLCH L 59.9% C 0.170 H 310.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9F5DCA
RGBrgb(159, 93, 202)
HSLhsl(276, 51%, 58%)
HSVhsv(276, 54%, 79%)
CMYKcmyk(21.3%, 54%, 0%, 20.8%)
CIE-LABlab(51.23, 46.34, -46.31)
CIE-LCHlch(51.23, 65.52, 315.02°)
OKLaboklab(59.9% 0.1097 -0.1298)
OKLCHoklch(59.9% 0.17 310.2)
XYZxyz(28.8711, 19.4644, 58.1018)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DCA #88CA5D
analogous
#685DCA #9F5DCA #CA5DBF
triadic
#9F5DCA #CA9F5D #5DCA9F
tetradic
#9F5DCA #CA685D #88CA5D #5DBFCA
square
#9F5DCA #CA685D #88CA5D #5DBFCA
split-complementary
#9F5DCA #BFCA5D #5DCA68
monochromatic
#602B82 #813AB0 #9F5DCA #BA8BD9 #D6B9E8

Accessibility & contrast

On white

4.29
#9F5DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#9F5DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DCA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DCA#FFFFFF#000000##000000
##9F5DCA1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D77CE
Deuteranopia (green-blind)
#537BC7
Tritanopia (blue-blind)
#9A708B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f5dca;
/* rgb */ color: rgb(159, 93, 202);
/* oklch */ color: oklch(59.9% 0.170 310.2);
Tailwind
colors: {
  custom: {
    50: '#be8dda',
    500: '#9f5dca',
    950: '#000000',
  },
}
SCSS
$custom: #9f5dca;
$custom-light: #be8dda;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5dca",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 276.33,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59901,
    "c": 0.16996,
    "h": 310.2
  },
  "luminance": 0.19464
}

Semantic roles & 50–950 ramp

primary
#9F5DCA
secondary
#BDD7AC
accent
#DA4E85
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9F5DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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