#9C5CDB#9C5CDB

#9C5CDB is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.5% C 0.190 H 304.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9C5CDB
RGBrgb(156, 92, 219)
HSLhsl(270, 64%, 61%)
HSVhsv(270, 58%, 86%)
CMYKcmyk(28.8%, 58%, 0%, 14.1%)
CIE-LABlab(51.65, 50.04, -55.34)
CIE-LCHlch(51.65, 74.61, 312.12°)
OKLaboklab(60.45% 0.1078 -0.1563)
OKLCHoklch(60.45% 0.19 304.6)
XYZxyz(30.3208, 19.8368, 69.2356)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5CDB #9BDB5C
analogous
#5C5CDB #9C5CDB #DB5CDB
triadic
#9C5CDB #DB9C5C #5CDB9C
tetradic
#9C5CDB #DB5C5C #9BDB5C #5CDBDB
square
#9C5CDB #DB5C5C #9BDB5C #5CDBDB
split-complementary
#9C5CDB #DBDB5C #5CDB5C
monochromatic
#5F229A #7E2DCD #9C5CDB #BA8EE6 #D9C0F1

Accessibility & contrast

On white

4.23
#9C5CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9C5CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5CDB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5CDB#FFFFFF#000000##000000
##9C5CDB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c5cdb;
/* rgb */ color: rgb(156, 92, 219);
/* oklch */ color: oklch(60.5% 0.190 304.6);
Tailwind
colors: {
  custom: {
    50: '#bd8de7',
    500: '#9c5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #9c5cdb;
$custom-light: #bd8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5cdb",
  "rgb": {
    "r": 156,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 270.236,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.6045,
    "c": 0.18986,
    "h": 304.6
  },
  "luminance": 0.19837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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