#9C28B1#9C28B1

#9C28B1 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.215 H 320.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9C28B1
RGBrgb(156, 40, 177)
HSLhsl(291, 63%, 43%)
HSVhsv(291, 77%, 69%)
CMYKcmyk(11.9%, 77.4%, 0%, 30.6%)
CIE-LABlab(40.83, 63.89, -48.38)
CIE-LCHlch(40.83, 80.14, 322.87°)
OKLaboklab(51.83% 0.1668 -0.1356)
OKLCHoklch(51.83% 0.215 320.9)
XYZxyz(22.4040, 11.7611, 42.6765)
Luminance0.1176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C28B1 #3DB128
analogous
#5828B1 #9C28B1 #B12881
triadic
#9C28B1 #B19C28 #28B19C
tetradic
#9C28B1 #B15828 #3DB128 #2881B1
square
#9C28B1 #B15828 #3DB128 #2881B1
split-complementary
#9C28B1 #81B128 #28B158
monochromatic
#44114D #701D7F #9C28B1 #BE42D4 #CF74E0

Accessibility & contrast

On white

6.26
#9C28B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9C28B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C28B1
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C28B1#FFFFFF#000000##FFFFFF
##9C28B11.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c28b1;
/* rgb */ color: rgb(156, 40, 177);
/* oklch */ color: oklch(51.8% 0.215 320.9);
Tailwind
colors: {
  custom: {
    50: '#bd70c9',
    500: '#9c28b1',
    950: '#000000',
  },
}
SCSS
$custom: #9c28b1;
$custom-light: #bd70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9c28b1",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 290.803,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51825,
    "c": 0.21497,
    "h": 320.9
  },
  "luminance": 0.1176
}

Semantic roles & 50–950 ramp

primary
#9C28B1
secondary
#7CC76E
accent
#E6425B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9C28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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