#9D5FEB#9D5FEB

#9D5FEB is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.0% C 0.204 H 301.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9D5FEB
RGBrgb(157, 95, 235)
HSLhsl(267, 78%, 65%)
HSVhsv(267, 60%, 92%)
CMYKcmyk(33.2%, 59.6%, 0%, 7.8%)
CIE-LABlab(53.33, 52.54, -61.66)
CIE-LCHlch(53.33, 81.01, 310.44°)
OKLaboklab(62.02% 0.1052 -0.1748)
OKLCHoklch(62.02% 0.204 301)
XYZxyz(32.9887, 21.3505, 80.9642)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5FEB #ADEB5F
analogous
#5F67EB #9D5FEB #E35FEB
triadic
#9D5FEB #EB9D5F #5FEB9D
tetradic
#9D5FEB #EB5F67 #ADEB5F #5FEBE3
square
#9D5FEB #EB5F67 #ADEB5F #5FEBE3
split-complementary
#9D5FEB #EBE35F #67EB5F
monochromatic
#5F17B9 #7C29E4 #9D5FEB #BE95F2 #E0CCF9

Accessibility & contrast

On white

3.98
#9D5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#9D5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5FEB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5FEB#FFFFFF#000000##000000
##9D5FEB1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#057FEF
Deuteranopia (green-blind)
#337FE8
Tritanopia (blue-blind)
#8D7C9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9d5feb;
/* rgb */ color: rgb(157, 95, 235);
/* oklch */ color: oklch(62.0% 0.204 301.0);
Tailwind
colors: {
  custom: {
    50: '#be8ff2',
    500: '#9d5feb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5feb;
$custom-light: #be8ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5feb",
  "rgb": {
    "r": 157,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 266.571,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62015,
    "c": 0.20404,
    "h": 301
  },
  "luminance": 0.21351
}

Semantic roles & 50–950 ramp

primary
#9D5FEB
secondary
#D6EBBB
accent
#DA0B7F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D17
muted
#827D85

Preview Lab

Preview with #9D5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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