#9D5CDB#9D5CDB

#9D5CDB is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.6% C 0.190 H 305.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9D5CDB
RGBrgb(157, 92, 219)
HSLhsl(271, 64%, 61%)
HSVhsv(271, 58%, 86%)
CMYKcmyk(28.3%, 58%, 0%, 14.1%)
CIE-LABlab(51.77, 50.28, -55.15)
CIE-LCHlch(51.77, 74.63, 312.35°)
OKLaboklab(60.56% 0.109 -0.1557)
OKLCHoklch(60.56% 0.19 305)
XYZxyz(30.5152, 19.9370, 69.2447)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CDB #9ADB5C
analogous
#5D5CDB #9D5CDB #DB5CD9
triadic
#9D5CDB #DB9D5C #5CDB9D
tetradic
#9D5CDB #DB5D5C #9ADB5C #5CD9DB
square
#9D5CDB #DB5D5C #9ADB5C #5CD9DB
split-complementary
#9D5CDB #D9DB5C #5CDB5D
monochromatic
#60229A #7F2DCD #9D5CDB #BB8EE6 #D9C0F1

Accessibility & contrast

On white

4.21
#9D5CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9D5CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CDB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CDB#FFFFFF#000000##000000
##9D5CDB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#257ADF
Deuteranopia (green-blind)
#427CD8
Tritanopia (blue-blind)
#927593
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d5cdb;
/* rgb */ color: rgb(157, 92, 219);
/* oklch */ color: oklch(60.6% 0.190 305.0);
Tailwind
colors: {
  custom: {
    50: '#bd8de7',
    500: '#9d5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cdb;
$custom-light: #bd8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cdb",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 270.709,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60559,
    "c": 0.1901,
    "h": 305
  },
  "luminance": 0.19937
}

Semantic roles & 50–950 ramp

primary
#9D5CDB
secondary
#C9E1B1
accent
#CC1A71
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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