#9F5DF1#9F5DF1

#9F5DF1 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.3% C 0.214 H 300.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9F5DF1
RGBrgb(159, 93, 241)
HSLhsl(267, 84%, 65%)
HSVhsv(267, 61%, 95%)
CMYKcmyk(34%, 61.4%, 0%, 5.5%)
CIE-LABlab(53.55, 55.46, -64.65)
CIE-LCHlch(53.55, 85.19, 310.63°)
OKLaboklab(62.34% 0.1098 -0.1836)
OKLCHoklch(62.34% 0.214 300.9)
XYZxyz(34.0858, 21.5503, 85.5659)
Luminance0.2155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DF1 #AFF15D
analogous
#5D65F1 #9F5DF1 #E95DF1
triadic
#9F5DF1 #F19F5D #5DF19F
tetradic
#9F5DF1 #F15D65 #AFF15D #5DF1E9
square
#9F5DF1 #F15D65 #AFF15D #5DF1E9
split-complementary
#9F5DF1 #F1E95D #65F15D
monochromatic
#6011C3 #7E25EC #9F5DF1 #C095F6 #E2CEFB

Accessibility & contrast

On white

3.95
#9F5DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#9F5DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DF1
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DF1#FFFFFF#000000##000000
##9F5DF11.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF6
Deuteranopia (green-blind)
#287FEE
Tritanopia (blue-blind)
#8E7D9F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9f5df1;
/* rgb */ color: rgb(159, 93, 241);
/* oklch */ color: oklch(62.3% 0.214 300.9);
Tailwind
colors: {
  custom: {
    50: '#c08ef6',
    500: '#9f5df1',
    950: '#000000',
  },
}
SCSS
$custom: #9f5df1;
$custom-light: #c08ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5df1",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 241
  },
  "hsl": {
    "h": 266.757,
    "s": 84.091,
    "l": 65.49
  },
  "oklch": {
    "l": 0.62342,
    "c": 0.21391,
    "h": 300.9
  },
  "luminance": 0.21551
}

Semantic roles & 50–950 ramp

primary
#9F5DF1
secondary
#D8EEBC
accent
#E1057F
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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