#9B5CE3#9B5CE3

#9B5CE3 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.9% C 0.199 H 302.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9B5CE3
RGBrgb(155, 92, 227)
HSLhsl(268, 71%, 63%)
HSVhsv(268, 59%, 89%)
CMYKcmyk(31.7%, 59.5%, 0%, 11%)
CIE-LABlab(52.03, 51.71, -59.27)
CIE-LCHlch(52.03, 78.66, 311.11°)
OKLaboklab(60.86% 0.1064 -0.1679)
OKLCHoklch(60.86% 0.199 302.4)
XYZxyz(31.2066, 20.1689, 74.9071)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CE3 #A4E35C
analogous
#5C60E3 #9B5CE3 #DF5CE3
triadic
#9B5CE3 #E39B5C #5CE39B
tetradic
#9B5CE3 #E35C60 #A4E35C #5CE3DF
square
#9B5CE3 #E35C60 #A4E35C #5CE3DF
split-complementary
#9B5CE3 #E3DF5C #60E35C
monochromatic
#5E1DA8 #7B28DA #9B5CE3 #BB90EC #DBC4F5

Accessibility & contrast

On white

4.17
#9B5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#9B5CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CE3
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CE3#FFFFFF#000000##000000
##9B5CE31.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#107BE7
Deuteranopia (green-blind)
#367CE0
Tritanopia (blue-blind)
#8D7897
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b5ce3;
/* rgb */ color: rgb(155, 92, 227);
/* oklch */ color: oklch(60.9% 0.199 302.4);
Tailwind
colors: {
  custom: {
    50: '#bd8dec',
    500: '#9b5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ce3;
$custom-light: #bd8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ce3",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 268,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60856,
    "c": 0.19874,
    "h": 302.4
  },
  "luminance": 0.20169
}

Semantic roles & 50–950 ramp

primary
#9B5CE3
secondary
#CFE6B5
accent
#D31379
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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