#9B28A8#9B28A8

#9B28A8 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.1% C 0.207 H 323.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#9B28A8
RGBrgb(155, 40, 168)
HSLhsl(294, 62%, 41%)
HSVhsv(294, 76%, 66%)
CMYKcmyk(7.7%, 76.2%, 0%, 34.1%)
CIE-LABlab(40.11, 62.08, -44.20)
CIE-LCHlch(40.11, 76.20, 324.55°)
OKLaboklab(51.1% 0.1664 -0.1234)
OKLCHoklch(51.1% 0.207 323.4)
XYZxyz(21.3436, 11.3146, 38.0979)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B28A8 #35A828
analogous
#5B28A8 #9B28A8 #A82875
triadic
#9B28A8 #A89B28 #28A89B
tetradic
#9B28A8 #A85B28 #35A828 #2875A8
square
#9B28A8 #A85B28 #35A828 #2875A8
split-complementary
#9B28A8 #75A828 #28A85B
monochromatic
#401045 #6D1C77 #9B28A8 #C23DD1 #D16EDC

Accessibility & contrast

On white

6.44
#9B28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9B28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B28A8
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B28A8#FFFFFF#000000##FFFFFF
##9B28A81.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#3F63A5
Tritanopia (blue-blind)
#9E4067
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9b28a8;
/* rgb */ color: rgb(155, 40, 168);
/* oklch */ color: oklch(51.1% 0.207 323.4);
Tailwind
colors: {
  custom: {
    50: '#bc6fc2',
    500: '#9b28a8',
    950: '#000000',
  },
}
SCSS
$custom: #9b28a8;
$custom-light: #bc6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b28a8",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 293.906,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51096,
    "c": 0.20722,
    "h": 323.4
  },
  "luminance": 0.11313
}

Semantic roles & 50–950 ramp

primary
#9B28A8
secondary
#72C369
accent
#E54354
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #9B28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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