#9B48CD#9B48CD

#9B48CD is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.8% C 0.203 H 310.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9B48CD
RGBrgb(155, 72, 205)
HSLhsl(277, 57%, 54%)
HSVhsv(277, 65%, 80%)
CMYKcmyk(24.4%, 64.9%, 0%, 19.6%)
CIE-LABlab(46.99, 56.58, -54.84)
CIE-LCHlch(46.99, 78.79, 315.89°)
OKLaboklab(56.76% 0.1308 -0.1548)
OKLCHoklch(56.76% 0.203 310.2)
XYZxyz(26.8523, 16.0116, 59.4218)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B48CD #7ACD48
analogous
#5948CD #9B48CD #CD48BC
triadic
#9B48CD #CD9B48 #48CD9B
tetradic
#9B48CD #CD5948 #7ACD48 #48BCCD
square
#9B48CD #CD5948 #7ACD48 #48BCCD
split-complementary
#9B48CD #BCCD48 #48CD59
monochromatic
#582179 #7B2EA9 #9B48CD #B578DA #D0A8E7

Accessibility & contrast

On white

5.00
#9B48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9B48CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B48CD
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B48CD#FFFFFF#000000##FFFFFF
##9B48CD1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#3671CA
Tritanopia (blue-blind)
#946384
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b48cd;
/* rgb */ color: rgb(155, 72, 205);
/* oklch */ color: oklch(56.8% 0.203 310.2);
Tailwind
colors: {
  custom: {
    50: '#bc80dd',
    500: '#9b48cd',
    950: '#000000',
  },
}
SCSS
$custom: #9b48cd;
$custom-light: #bc80dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9b48cd",
  "rgb": {
    "r": 155,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 277.444,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56763,
    "c": 0.20261,
    "h": 310.2
  },
  "luminance": 0.16011
}

Semantic roles & 50–950 ramp

primary
#9B48CD
secondary
#B1D59C
accent
#E04781
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9B48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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