#9B48E1#9B48E1

#9B48E1 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.1% C 0.223 H 305.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9B48E1
RGBrgb(155, 72, 225)
HSLhsl(273, 72%, 58%)
HSVhsv(273, 68%, 88%)
CMYKcmyk(31.1%, 68%, 0%, 11.8%)
CIE-LABlab(48.31, 61.04, -64.13)
CIE-LCHlch(48.31, 88.53, 313.58°)
OKLaboklab(58.13% 0.1289 -0.1821)
OKLCHoklch(58.13% 0.223 305.3)
XYZxyz(29.4225, 17.0397, 72.9585)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B48E1 #8EE148
analogous
#4E48E1 #9B48E1 #E148DA
triadic
#9B48E1 #E19B48 #48E19B
tetradic
#9B48E1 #E14E48 #8EE148 #48DAE1
square
#9B48E1 #E14E48 #8EE148 #48DAE1
split-complementary
#9B48E1 #DAE148 #48E14E
monochromatic
#5D1996 #7D21CB #9B48E1 #B87DEA #D4B1F2

Accessibility & contrast

On white

4.76
#9B48E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#9B48E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B48E1
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B48E1#FFFFFF#000000##FFFFFF
##9B48E11.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E6
Deuteranopia (green-blind)
#0E73DE
Tritanopia (blue-blind)
#8E6B8F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9b48e1;
/* rgb */ color: rgb(155, 72, 225);
/* oklch */ color: oklch(58.1% 0.223 305.3);
Tailwind
colors: {
  custom: {
    50: '#be81eb',
    500: '#9b48e1',
    950: '#000000',
  },
}
SCSS
$custom: #9b48e1;
$custom-light: #be81eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b48e1",
  "rgb": {
    "r": 155,
    "g": 72,
    "b": 225
  },
  "hsl": {
    "h": 272.549,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.5813,
    "c": 0.22307,
    "h": 305.3
  },
  "luminance": 0.1704
}

Semantic roles & 50–950 ramp

primary
#9B48E1
secondary
#C0E1A4
accent
#EF398C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9B48E1

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

Preview Lab → · Contrast checker → · Palette generator →

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