#9C5DDB#9C5DDB

#9C5DDB is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.6% C 0.188 H 304.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9C5DDB
RGBrgb(156, 93, 219)
HSLhsl(270, 64%, 61%)
HSVhsv(270, 58%, 86%)
CMYKcmyk(28.8%, 57.5%, 0%, 14.1%)
CIE-LABlab(51.85, 49.51, -55.02)
CIE-LCHlch(51.85, 74.02, 311.98°)
OKLaboklab(60.6% 0.1065 -0.1554)
OKLCHoklch(60.6% 0.188 304.4)
XYZxyz(30.4080, 20.0112, 69.2647)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5DDB #9CDB5D
analogous
#5D5DDB #9C5DDB #DB5DDB
triadic
#9C5DDB #DB9C5D #5DDB9C
tetradic
#9C5DDB #DB5D5D #9CDB5D #5DDBDB
square
#9C5DDB #DB5D5D #9CDB5D #5DDBDB
split-complementary
#9C5DDB #DBDB5D #5DDB5D
monochromatic
#5F229B #7D2ECD #9C5DDB #BB8FE6 #D9C1F1

Accessibility & contrast

On white

4.20
#9C5DDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#9C5DDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5DDB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5DDB#FFFFFF#000000##000000
##9C5DDB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#277ADF
Deuteranopia (green-blind)
#427CD8
Tritanopia (blue-blind)
#917693
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9c5ddb;
/* rgb */ color: rgb(156, 93, 219);
/* oklch */ color: oklch(60.6% 0.188 304.4);
Tailwind
colors: {
  custom: {
    50: '#bd8de7',
    500: '#9c5ddb',
    950: '#000000',
  },
}
SCSS
$custom: #9c5ddb;
$custom-light: #bd8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5ddb",
  "rgb": {
    "r": 156,
    "g": 93,
    "b": 219
  },
  "hsl": {
    "h": 270,
    "s": 63.636,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60595,
    "c": 0.18839,
    "h": 304.4
  },
  "luminance": 0.20011
}

Semantic roles & 50–950 ramp

primary
#9C5DDB
secondary
#CAE2B2
accent
#CB1A73
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9C5DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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