#9B5EDD#9B5EDD

#9B5EDD is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.8% C 0.189 H 303.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9B5EDD
RGBrgb(155, 94, 221)
HSLhsl(269, 65%, 62%)
HSVhsv(269, 57%, 87%)
CMYKcmyk(29.9%, 57.5%, 0%, 13.3%)
CIE-LABlab(52.06, 49.22, -55.83)
CIE-LCHlch(52.06, 74.43, 311.40°)
OKLaboklab(60.76% 0.104 -0.1578)
OKLCHoklch(60.76% 0.189 303.4)
XYZxyz(30.5685, 20.1945, 70.6801)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5EDD #A0DD5E
analogous
#5E61DD #9B5EDD #DB5EDD
triadic
#9B5EDD #DD9B5E #5EDD9B
tetradic
#9B5EDD #DD5E61 #A0DD5E #5EDDDB
square
#9B5EDD #DD5E61 #A0DD5E #5EDDDB
split-complementary
#9B5EDD #DDDB5E #61DD5E
monochromatic
#5E229F #7C2CD2 #9B5EDD #BA91E8 #DAC3F2

Accessibility & contrast

On white

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

On black

5.04
#9B5EDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5EDD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5EDD#FFFFFF#000000##000000
##9B5EDD1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#267BE1
Deuteranopia (green-blind)
#407CDA
Tritanopia (blue-blind)
#8F7795
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b5edd;
/* rgb */ color: rgb(155, 94, 221);
/* oklch */ color: oklch(60.8% 0.189 303.4);
Tailwind
colors: {
  custom: {
    50: '#bc8ee8',
    500: '#9b5edd',
    950: '#000000',
  },
}
SCSS
$custom: #9b5edd;
$custom-light: #bc8ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5edd",
  "rgb": {
    "r": 155,
    "g": 94,
    "b": 221
  },
  "hsl": {
    "h": 268.819,
    "s": 65.128,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60759,
    "c": 0.189,
    "h": 303.4
  },
  "luminance": 0.20194
}

Semantic roles & 50–950 ramp

primary
#9B5EDD
secondary
#CCE3B4
accent
#CD1976
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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