#9C28BA#9C28BA

#9C28BA is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.4% C 0.222 H 318.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9C28BA
RGBrgb(156, 40, 186)
HSLhsl(288, 65%, 44%)
HSVhsv(288, 78%, 73%)
CMYKcmyk(16.1%, 78.5%, 0%, 27.1%)
CIE-LABlab(41.42, 65.54, -52.74)
CIE-LCHlch(41.42, 84.13, 321.18°)
OKLaboklab(52.43% 0.1657 -0.1484)
OKLCHoklch(52.43% 0.222 318.1)
XYZxyz(23.3308, 12.1318, 47.5576)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C28BA #46BA28
analogous
#5328BA #9C28BA #BA288F
triadic
#9C28BA #BA9C28 #28BA9C
tetradic
#9C28BA #BA5328 #46BA28 #288FBA
square
#9C28BA #BA5328 #46BA28 #288FBA
split-complementary
#9C28BA #8FBA28 #28BA53
monochromatic
#481255 #721D88 #9C28BA #BA48D8 #CD7AE2

Accessibility & contrast

On white

6.13
#9C28BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9C28BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C28BA
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C28BA#FFFFFF#000000##FFFFFF
##9C28BA1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#2F65B7
Tritanopia (blue-blind)
#9B4971
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9c28ba;
/* rgb */ color: rgb(156, 40, 186);
/* oklch */ color: oklch(52.4% 0.222 318.1);
Tailwind
colors: {
  custom: {
    50: '#be70cf',
    500: '#9c28ba',
    950: '#000000',
  },
}
SCSS
$custom: #9c28ba;
$custom-light: #be70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c28ba",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 287.671,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52431,
    "c": 0.2224,
    "h": 318.1
  },
  "luminance": 0.12131
}

Semantic roles & 50–950 ramp

primary
#9C28BA
secondary
#85CA73
accent
#E84063
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9C28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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