#9B28A9#9B28A9

#9B28A9 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.208 H 323.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9B28A9
RGBrgb(155, 40, 169)
HSLhsl(293, 62%, 41%)
HSVhsv(293, 76%, 66%)
CMYKcmyk(8.3%, 76.3%, 0%, 33.7%)
CIE-LABlab(40.17, 62.25, -44.70)
CIE-LCHlch(40.17, 76.64, 324.32°)
OKLaboklab(51.16% 0.1664 -0.1249)
OKLCHoklch(51.16% 0.208 323.1)
XYZxyz(21.4371, 11.3520, 38.5904)
Luminance0.1135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B28A9 #36A928
analogous
#5A28A9 #9B28A9 #A92876
triadic
#9B28A9 #A99B28 #28A99B
tetradic
#9B28A9 #A95A28 #36A928 #2876A9
square
#9B28A9 #A95A28 #36A928 #2876A9
split-complementary
#9B28A9 #76A928 #28A95A
monochromatic
#401146 #6E1C78 #9B28A9 #C13DD1 #D16FDD

Accessibility & contrast

On white

6.42
#9B28A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9B28A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B28A9
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B28A9#FFFFFF#000000##FFFFFF
##9B28A91.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AC
Deuteranopia (green-blind)
#3E63A6
Tritanopia (blue-blind)
#9D4167
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9b28a9;
/* rgb */ color: rgb(155, 40, 169);
/* oklch */ color: oklch(51.2% 0.208 323.1);
Tailwind
colors: {
  custom: {
    50: '#bc6fc3',
    500: '#9b28a9',
    950: '#000000',
  },
}
SCSS
$custom: #9b28a9;
$custom-light: #bc6fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b28a9",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 293.488,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5116,
    "c": 0.20802,
    "h": 323.1
  },
  "luminance": 0.11351
}

Semantic roles & 50–950 ramp

primary
#9B28A9
secondary
#73C469
accent
#E54355
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #9B28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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