#9B56DC#9B56DC

#9B56DC is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.6% C 0.199 H 304.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9B56DC
RGBrgb(155, 86, 220)
HSLhsl(271, 66%, 60%)
HSVhsv(271, 61%, 86%)
CMYKcmyk(29.5%, 60.9%, 0%, 13.7%)
CIE-LABlab(50.44, 53.14, -57.86)
CIE-LCHlch(50.44, 78.55, 312.56°)
OKLaboklab(59.56% 0.1137 -0.1637)
OKLCHoklch(59.56% 0.199 304.8)
XYZxyz(29.7608, 18.7916, 69.7556)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B56DC #97DC56
analogous
#5856DC #9B56DC #DC56DA
triadic
#9B56DC #DC9B56 #56DC9B
tetradic
#9B56DC #DC5856 #97DC56 #56DADC
square
#9B56DC #DC5856 #97DC56 #56DADC
split-complementary
#9B56DC #DADC56 #56DC58
monochromatic
#5E2098 #7D2ACB #9B56DC #B989E6 #D7BBF1

Accessibility & contrast

On white

4.41
#9B56DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#9B56DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B56DC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B56DC#FFFFFF#000000##000000
##9B56DC1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0476E0
Deuteranopia (green-blind)
#3678D9
Tritanopia (blue-blind)
#8F7191
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9b56dc;
/* rgb */ color: rgb(155, 86, 220);
/* oklch */ color: oklch(59.6% 0.199 304.8);
Tailwind
colors: {
  custom: {
    50: '#bd89e8',
    500: '#9b56dc',
    950: '#000000',
  },
}
SCSS
$custom: #9b56dc;
$custom-light: #bd89e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b56dc",
  "rgb": {
    "r": 155,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 270.896,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.59563,
    "c": 0.19933,
    "h": 304.8
  },
  "luminance": 0.18791
}

Semantic roles & 50–950 ramp

primary
#9B56DC
secondary
#C6E1AD
accent
#E93F91
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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