#9B28BA#9B28BA

#9B28BA is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.3% C 0.222 H 317.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9B28BA
RGBrgb(155, 40, 186)
HSLhsl(287, 65%, 44%)
HSVhsv(287, 78%, 73%)
CMYKcmyk(16.7%, 78.5%, 0%, 27.1%)
CIE-LABlab(41.27, 65.36, -53.00)
CIE-LCHlch(41.27, 84.14, 320.96°)
OKLaboklab(52.29% 0.1645 -0.1492)
OKLCHoklch(52.29% 0.222 317.8)
XYZxyz(23.1380, 12.0324, 47.5485)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B28BA #47BA28
analogous
#5228BA #9B28BA #BA2890
triadic
#9B28BA #BA9B28 #28BA9B
tetradic
#9B28BA #BA5228 #47BA28 #2890BA
square
#9B28BA #BA5228 #47BA28 #2890BA
split-complementary
#9B28BA #90BA28 #28BA52
monochromatic
#471255 #711D88 #9B28BA #B948D8 #CC7AE2

Accessibility & contrast

On white

6.17
#9B28BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9B28BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B28BA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B28BA#FFFFFF#000000##FFFFFF
##9B28BA1.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#2D65B7
Tritanopia (blue-blind)
#9A4971
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9b28ba;
/* rgb */ color: rgb(155, 40, 186);
/* oklch */ color: oklch(52.3% 0.222 317.8);
Tailwind
colors: {
  custom: {
    50: '#bd70cf',
    500: '#9b28ba',
    950: '#000000',
  },
}
SCSS
$custom: #9b28ba;
$custom-light: #bd70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b28ba",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 287.26,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52289,
    "c": 0.22204,
    "h": 317.8
  },
  "luminance": 0.12031
}

Semantic roles & 50–950 ramp

primary
#9B28BA
secondary
#86CA73
accent
#E84064
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9B28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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