#9B28B1#9B28B1

#9B28B1 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.215 H 320.5°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9B28B1
RGBrgb(155, 40, 177)
HSLhsl(290, 63%, 43%)
HSVhsv(290, 77%, 69%)
CMYKcmyk(12.4%, 77.4%, 0%, 30.6%)
CIE-LABlab(40.67, 63.69, -48.64)
CIE-LCHlch(40.67, 80.14, 322.63°)
OKLaboklab(51.68% 0.1656 -0.1364)
OKLCHoklch(51.68% 0.215 320.5)
XYZxyz(22.2112, 11.6617, 42.6674)
Luminance0.1166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B28B1 #3EB128
analogous
#5628B1 #9B28B1 #B12882
triadic
#9B28B1 #B19B28 #28B19B
tetradic
#9B28B1 #B15628 #3EB128 #2882B1
square
#9B28B1 #B15628 #3EB128 #2882B1
split-complementary
#9B28B1 #82B128 #28B156
monochromatic
#44114D #6F1D7F #9B28B1 #BD42D4 #CE74E0

Accessibility & contrast

On white

6.30
#9B28B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9B28B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B28B1
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B28B1#FFFFFF#000000##FFFFFF
##9B28B11.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B5
Deuteranopia (green-blind)
#3764AE
Tritanopia (blue-blind)
#9C456C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9b28b1;
/* rgb */ color: rgb(155, 40, 177);
/* oklch */ color: oklch(51.7% 0.215 320.5);
Tailwind
colors: {
  custom: {
    50: '#bd70c9',
    500: '#9b28b1',
    950: '#000000',
  },
}
SCSS
$custom: #9b28b1;
$custom-light: #bd70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b28b1",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 290.365,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5168,
    "c": 0.21457,
    "h": 320.5
  },
  "luminance": 0.1166
}

Semantic roles & 50–950 ramp

primary
#9B28B1
secondary
#7CC76E
accent
#E6425C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9B28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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