#9B28AB#9B28AB

#9B28AB is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.210 H 322.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9B28AB
RGBrgb(155, 40, 171)
HSLhsl(293, 62%, 41%)
HSVhsv(293, 77%, 67%)
CMYKcmyk(9.4%, 76.6%, 0%, 32.9%)
CIE-LABlab(40.29, 62.61, -45.69)
CIE-LCHlch(40.29, 77.51, 323.88°)
OKLaboklab(51.29% 0.1662 -0.1278)
OKLCHoklch(51.29% 0.21 322.4)
XYZxyz(21.6263, 11.4277, 39.5868)
Luminance0.1143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B28AB #38AB28
analogous
#5A28AB #9B28AB #AB287A
triadic
#9B28AB #AB9B28 #28AB9B
tetradic
#9B28AB #AB5A28 #38AB28 #287AAB
square
#9B28AB #AB5A28 #38AB28 #287AAB
split-complementary
#9B28AB #7AAB28 #28AB5A
monochromatic
#411148 #6E1C79 #9B28AB #C03ED2 #D070DE

Accessibility & contrast

On white

6.39
#9B28AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9B28AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B28AB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B28AB#FFFFFF#000000##FFFFFF
##9B28AB1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#3C63A8
Tritanopia (blue-blind)
#9D4269
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9b28ab;
/* rgb */ color: rgb(155, 40, 171);
/* oklch */ color: oklch(51.3% 0.210 322.4);
Tailwind
colors: {
  custom: {
    50: '#bc6fc5',
    500: '#9b28ab',
    950: '#000000',
  },
}
SCSS
$custom: #9b28ab;
$custom-light: #bc6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b28ab",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 292.672,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51288,
    "c": 0.20965,
    "h": 322.4
  },
  "luminance": 0.11426
}

Semantic roles & 50–950 ramp

primary
#9B28AB
secondary
#75C46A
accent
#E54356
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9B28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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