#9B46CB#9B46CB

#9B46CB is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.4% C 0.203 H 310.9°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9B46CB
RGBrgb(155, 70, 203)
HSLhsl(278, 56%, 54%)
HSVhsv(278, 66%, 80%)
CMYKcmyk(23.6%, 65.5%, 0%, 20.4%)
CIE-LABlab(46.53, 57.07, -54.43)
CIE-LCHlch(46.53, 78.86, 316.36°)
OKLaboklab(56.39% 0.1331 -0.1536)
OKLCHoklch(56.39% 0.203 310.9)
XYZxyz(26.4852, 15.6613, 58.1161)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B46CB #76CB46
analogous
#5846CB #9B46CB #CB46B8
triadic
#9B46CB #CB9B46 #46CB9B
tetradic
#9B46CB #CB5846 #76CB46 #46B8CB
square
#9B46CB #CB5846 #76CB46 #46B8CB
split-complementary
#9B46CB #B8CB46 #46CB58
monochromatic
#572176 #7A2EA5 #9B46CB #B576D8 #CFA6E6

Accessibility & contrast

On white

5.08
#9B46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#9B46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B46CB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B46CB#FFFFFF#000000##FFFFFF
##9B46CB1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#3670C8
Tritanopia (blue-blind)
#956183
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9b46cb;
/* rgb */ color: rgb(155, 70, 203);
/* oklch */ color: oklch(56.4% 0.203 310.9);
Tailwind
colors: {
  custom: {
    50: '#bc7fdb',
    500: '#9b46cb',
    950: '#000000',
  },
}
SCSS
$custom: #9b46cb;
$custom-light: #bc7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b46cb",
  "rgb": {
    "r": 155,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 278.346,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5639,
    "c": 0.20326,
    "h": 310.9
  },
  "luminance": 0.15661
}

Semantic roles & 50–950 ramp

primary
#9B46CB
secondary
#AED39A
accent
#DF487F
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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