#9A48CB#9A48CB

#9A48CB is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.5% C 0.200 H 310.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9A48CB
RGBrgb(154, 72, 203)
HSLhsl(278, 56%, 54%)
HSVhsv(278, 65%, 80%)
CMYKcmyk(24.1%, 64.5%, 0%, 20.4%)
CIE-LABlab(46.73, 55.91, -54.10)
CIE-LCHlch(46.73, 77.81, 315.94°)
OKLaboklab(56.51% 0.1296 -0.1527)
OKLCHoklch(56.51% 0.2 310.3)
XYZxyz(26.4212, 15.8171, 58.1495)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A48CB #79CB48
analogous
#5948CB #9A48CB #CB48BB
triadic
#9A48CB #CB9A48 #48CB9A
tetradic
#9A48CB #CB5948 #79CB48 #48BBCB
square
#9A48CB #CB5948 #79CB48 #48BBCB
split-complementary
#9A48CB #BBCB48 #48CB59
monochromatic
#572277 #7A2FA6 #9A48CB #B478D9 #CFA7E6

Accessibility & contrast

On white

5.04
#9A48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9A48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A48CB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A48CB#FFFFFF#000000##FFFFFF
##9A48CB1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a48cb;
/* rgb */ color: rgb(154, 72, 203);
/* oklch */ color: oklch(56.5% 0.200 310.3);
Tailwind
colors: {
  custom: {
    50: '#bc80db',
    500: '#9a48cb',
    950: '#000000',
  },
}
SCSS
$custom: #9a48cb;
$custom-light: #bc80db;
$custom-dark: #000000;
JSON
{
  "hex": "#9a48cb",
  "rgb": {
    "r": 154,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 277.557,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56511,
    "c": 0.20024,
    "h": 310.3
  },
  "luminance": 0.15817
}

Semantic roles & 50–950 ramp

primary
#9A48CB
secondary
#B0D39B
accent
#DF4981
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9A48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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