#9B28BC#9B28BC

#9B28BC is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.4% C 0.224 H 317.2°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9B28BC
RGBrgb(155, 40, 188)
HSLhsl(287, 65%, 45%)
HSVhsv(287, 79%, 74%)
CMYKcmyk(17.6%, 78.7%, 0%, 26.3%)
CIE-LABlab(41.40, 65.73, -53.96)
CIE-LCHlch(41.40, 85.04, 320.62°)
OKLaboklab(52.43% 0.1641 -0.152)
OKLCHoklch(52.43% 0.224 317.2)
XYZxyz(23.3521, 12.1180, 48.6761)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B28BC #49BC28
analogous
#5128BC #9B28BC #BC2893
triadic
#9B28BC #BC9B28 #28BC9B
tetradic
#9B28BC #BC5128 #49BC28 #2893BC
square
#9B28BC #BC5128 #49BC28 #2893BC
split-complementary
#9B28BC #93BC28 #28BC51
monochromatic
#481357 #711D8A #9B28BC #B849D8 #CC7BE3

Accessibility & contrast

On white

6.13
#9B28BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9B28BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B28BC
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B28BC#FFFFFF#000000##FFFFFF
##9B28BC1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#2B65B9
Tritanopia (blue-blind)
#994A72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b28bc;
/* rgb */ color: rgb(155, 40, 188);
/* oklch */ color: oklch(52.4% 0.224 317.2);
Tailwind
colors: {
  custom: {
    50: '#bd70d1',
    500: '#9b28bc',
    950: '#000000',
  },
}
SCSS
$custom: #9b28bc;
$custom-light: #bd70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b28bc",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 286.622,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52427,
    "c": 0.22371,
    "h": 317.2
  },
  "luminance": 0.12117
}

Semantic roles & 50–950 ramp

primary
#9B28BC
secondary
#88CB75
accent
#E84065
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9B28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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