#9B48CB#9B48CB

#9B48CB is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.6% C 0.201 H 310.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9B48CB
RGBrgb(155, 72, 203)
HSLhsl(278, 56%, 54%)
HSVhsv(278, 65%, 80%)
CMYKcmyk(23.6%, 64.5%, 0%, 20.4%)
CIE-LABlab(46.86, 56.14, -53.89)
CIE-LCHlch(46.86, 77.82, 316.17°)
OKLaboklab(56.63% 0.1309 -0.152)
OKLCHoklch(56.63% 0.201 310.7)
XYZxyz(26.6124, 15.9157, 58.1585)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B48CB #78CB48
analogous
#5A48CB #9B48CB #CB48BA
triadic
#9B48CB #CB9B48 #48CB9B
tetradic
#9B48CB #CB5A48 #78CB48 #48BACB
square
#9B48CB #CB5A48 #78CB48 #48BACB
split-complementary
#9B48CB #BACB48 #48CB5A
monochromatic
#582277 #7B2FA6 #9B48CB #B578D9 #CFA7E6

Accessibility & contrast

On white

5.02
#9B48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9B48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B48CB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B48CB#FFFFFF#000000##FFFFFF
##9B48CB1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#3871C8
Tritanopia (blue-blind)
#956283
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b48cb;
/* rgb */ color: rgb(155, 72, 203);
/* oklch */ color: oklch(56.6% 0.201 310.7);
Tailwind
colors: {
  custom: {
    50: '#bc80db',
    500: '#9b48cb',
    950: '#000000',
  },
}
SCSS
$custom: #9b48cb;
$custom-light: #bc80db;
$custom-dark: #000000;
JSON
{
  "hex": "#9b48cb",
  "rgb": {
    "r": 155,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 278.015,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56632,
    "c": 0.20057,
    "h": 310.7
  },
  "luminance": 0.15915
}

Semantic roles & 50–950 ramp

primary
#9B48CB
secondary
#B0D39B
accent
#DF4980
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9B48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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