#9B5DF2#9B5DF2

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

Color values

HEX#9B5DF2
RGBrgb(155, 93, 242)
HSLhsl(265, 85%, 66%)
HSVhsv(265, 62%, 95%)
CMYKcmyk(36%, 61.6%, 0%, 5.1%)
CIE-LABlab(53.18, 54.86, -65.83)
CIE-LCHlch(53.18, 85.69, 309.80°)
OKLaboklab(62% 0.1046 -0.1872)
OKLCHoklch(62% 0.214 299.2)
XYZxyz(33.4550, 21.2077, 86.3181)
Luminance0.2121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5DF2 #B4F25D
analogous
#5D69F2 #9B5DF2 #E55DF2
triadic
#9B5DF2 #F29B5D #5DF29B
tetradic
#9B5DF2 #F25D69 #B4F25D #5DF2E5
square
#9B5DF2 #F25D69 #B4F25D #5DF2E5
split-complementary
#9B5DF2 #F2E55D #69F25D
monochromatic
#5B10C5 #7824ED #9B5DF2 #BE96F7 #E1CEFB

Accessibility & contrast

On white

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

On black

5.24
#9B5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5DF2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5DF2#FFFFFF#000000##000000
##9B5DF21.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#1D7EEF
Tritanopia (blue-blind)
#887E9F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9b5df2;
/* rgb */ color: rgb(155, 93, 242);
/* oklch */ color: oklch(62.0% 0.214 299.2);
Tailwind
colors: {
  custom: {
    50: '#be8ef7',
    500: '#9b5df2',
    950: '#000000',
  },
}
SCSS
$custom: #9b5df2;
$custom-light: #be8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5df2",
  "rgb": {
    "r": 155,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 264.966,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61996,
    "c": 0.2144,
    "h": 299.2
  },
  "luminance": 0.21208
}

Semantic roles & 50–950 ramp

primary
#9B5DF2
secondary
#DAEEBD
accent
#E20485
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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