#9F5DE5#9F5DE5

#9F5DE5 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.6% C 0.200 H 303.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9F5DE5
RGBrgb(159, 93, 229)
HSLhsl(269, 72%, 63%)
HSVhsv(269, 59%, 90%)
CMYKcmyk(30.6%, 59.4%, 0%, 10.2%)
CIE-LABlab(52.79, 52.59, -59.14)
CIE-LCHlch(52.79, 79.14, 311.64°)
OKLaboklab(61.55% 0.1103 -0.1674)
OKLCHoklch(61.55% 0.2 303.4)
XYZxyz(32.3521, 20.8568, 76.4349)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DE5 #A3E55D
analogous
#5D5FE5 #9F5DE5 #E35DE5
triadic
#9F5DE5 #E59F5D #5DE59F
tetradic
#9F5DE5 #E55D5F #A3E55D #5DE5E3
square
#9F5DE5 #E55D5F #A3E55D #5DE5E3
split-complementary
#9F5DE5 #E5E35D #5FE55D
monochromatic
#621CAC #8028DD #9F5DE5 #BE92ED #DEC6F6

Accessibility & contrast

On white

4.06
#9F5DE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9F5DE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DE5
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DE5#FFFFFF#000000##000000
##9F5DE51.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#157DE9
Deuteranopia (green-blind)
#3A7EE2
Tritanopia (blue-blind)
#927998
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5de5;
/* rgb */ color: rgb(159, 93, 229);
/* oklch */ color: oklch(61.6% 0.200 303.4);
Tailwind
colors: {
  custom: {
    50: '#bf8eee',
    500: '#9f5de5',
    950: '#000000',
  },
}
SCSS
$custom: #9f5de5;
$custom-light: #bf8eee;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5de5",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 229
  },
  "hsl": {
    "h": 269.118,
    "s": 72.34,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61553,
    "c": 0.20044,
    "h": 303.4
  },
  "luminance": 0.20857
}

Semantic roles & 50–950 ramp

primary
#9F5DE5
secondary
#D0E7B7
accent
#D41176
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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