#9D5BDB#9D5BDB

#9D5BDB is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.4% C 0.192 H 305.1°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9D5BDB
RGBrgb(157, 91, 219)
HSLhsl(271, 64%, 61%)
HSVhsv(271, 58%, 86%)
CMYKcmyk(28.3%, 58.4%, 0%, 14.1%)
CIE-LABlab(51.57, 50.80, -55.47)
CIE-LCHlch(51.57, 75.21, 312.48°)
OKLaboklab(60.42% 0.1103 -0.1567)
OKLCHoklch(60.42% 0.192 305.1)
XYZxyz(30.4291, 19.7649, 69.2161)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5BDB #99DB5B
analogous
#5D5BDB #9D5BDB #DB5BD9
triadic
#9D5BDB #DB9D5B #5BDB9D
tetradic
#9D5BDB #DB5D5B #99DB5B #5BD9DB
square
#9D5BDB #DB5D5B #99DB5B #5BD9DB
split-complementary
#9D5BDB #D9DB5B #5BDB5D
monochromatic
#60229A #7F2DCC #9D5BDB #BB8DE6 #D9BFF1

Accessibility & contrast

On white

4.24
#9D5BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#9D5BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5BDB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5BDB#FFFFFF#000000##000000
##9D5BDB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2279DF
Deuteranopia (green-blind)
#417BD8
Tritanopia (blue-blind)
#927492
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d5bdb;
/* rgb */ color: rgb(157, 91, 219);
/* oklch */ color: oklch(60.4% 0.192 305.1);
Tailwind
colors: {
  custom: {
    50: '#be8ce7',
    500: '#9d5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5bdb;
$custom-light: #be8ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5bdb",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 270.938,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60416,
    "c": 0.19156,
    "h": 305.1
  },
  "luminance": 0.19765
}

Semantic roles & 50–950 ramp

primary
#9D5BDB
secondary
#C8E1B1
accent
#CC1A70
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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