#9D5CF1#9D5CF1

#9D5CF1 is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 62.0% C 0.215 H 300.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9D5CF1
RGBrgb(157, 92, 241)
HSLhsl(266, 84%, 65%)
HSVhsv(266, 62%, 95%)
CMYKcmyk(34.9%, 61.8%, 0%, 5.5%)
CIE-LABlab(53.14, 55.55, -65.32)
CIE-LCHlch(53.14, 85.75, 310.38°)
OKLaboklab(62% 0.1084 -0.1856)
OKLCHoklch(62% 0.215 300.3)
XYZxyz(33.6051, 21.1730, 85.5184)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CF1 #B0F15C
analogous
#5C66F1 #9D5CF1 #E75CF1
triadic
#9D5CF1 #F19D5C #5CF19D
tetradic
#9D5CF1 #F15C66 #B0F15C #5CF1E7
square
#9D5CF1 #F15C66 #B0F15C #5CF1E7
split-complementary
#9D5CF1 #F1E75C #66F15C
monochromatic
#5E11C2 #7B24EC #9D5CF1 #BF94F6 #E1CDFB

Accessibility & contrast

On white

4.01
#9D5CF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#9D5CF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CF1
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CF1#FFFFFF#000000##000000
##9D5CF11.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF6
Deuteranopia (green-blind)
#217EEE
Tritanopia (blue-blind)
#8B7C9E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9d5cf1;
/* rgb */ color: rgb(157, 92, 241);
/* oklch */ color: oklch(62.0% 0.215 300.3);
Tailwind
colors: {
  custom: {
    50: '#bf8df6',
    500: '#9d5cf1',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cf1;
$custom-light: #bf8df6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cf1",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 241
  },
  "hsl": {
    "h": 266.174,
    "s": 84.181,
    "l": 65.294
  },
  "oklch": {
    "l": 0.61997,
    "c": 0.21492,
    "h": 300.3
  },
  "luminance": 0.21173
}

Semantic roles & 50–950 ramp

primary
#9D5CF1
secondary
#D8EEBB
accent
#E10581
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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